S, T, c = input().split() S = int(S); T = int(T) F = 0 if (c == '<') and (S < T): F = 1 if (c == '>') and (S > T): F = 1 if (c == '=') and (S == T): F = 1 if F == 0: print('NO') if F == 1: print('YES')