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