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