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