S,T,c=input().split() S=int(S);T=int(T) if c=="<": if S": if S>T: F=1 else: F=0 else: if S==T: F=1 else: F=0 if F==1: print("YES") else: print("NO")