Help me in solving COURSEREG problem

My issue

My code

#include <stdio.h>

int main() {
	// your code goes here
	int m,n,k,i;
	//scanf("%d",&m);
	//scanf("%d",&n);
	//scanf("%d",&k);
//	for(i=n;i<=m;i++)
	scanf("%d %d %d",&n,&k,&m);
	if(n+k>m)
	printf("NO");
	else
	printf("YES");
	return 0;
}


Problem Link: COURSEREG Problem - CodeChef