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