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