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