def main(): S, T ,c = input().split() #print(S) #print(T) #print(c) 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') if __name__ == '__main__': main()