Help me in solving CS2023_GIFT problem

My issue

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	int X,N,M;
	scanf("%d %d %d",&X,&N,&M);
	if(X == N)
	{
	    printf("YES\n");
	}
	else if(N > X)
	{
	    if(M >=M-N)
	    {
	        printf("YES\n");
	    }
	    else
	    {
	        printf("NO\n");
	    }
	}
	else
	{
	    printf("NO\n");
	}
	return 0;
}


Problem Link: CS2023_GIF Problem - CodeChef