import sys S, T, c = sys.stdin.readline().rstrip().split() S = int(S) T = int(T) if c == '<' and S < T: print("YES") elif c == '<' and S >= T: print("NO") elif c == '>' and S > T: print("YES") elif c == '>' and S <= T: print("NO") elif c == '=' and S == T: print("YES") else: print("NO")