CodechefSep 12, 2025

The Gift

Hazrat Ali

Codechef

We know that Om is the technical secretary of IIIT-A and has access to the Gymkhana funds of IIIT-A. Currently there are M rupees in the fund and Om can use the fund as much as he wants.

Find whether Om can gift his girlfriend a new laptop.

Input Format

  • The first and only line of input contains three space-separated integers XN, and M — the amount Om has, the price of the laptop, and the amount present in the Gymkhana fund respectively.

Output Format

For each input, output YES if Om can buy the laptop and NO otherwise.

You may print each character in uppercase or lowercase. For example YESYesyes, and yES are all considered the same.

Constraints

  • 1≤X,N,M≤103

Sample 1:

Input
5 10 15
Output
 
YES


Solution

X, N, M = map(int, input().split())

if X + M >= N:
    
    print("YES")
    
else:
    
    print("NO")






Comments