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