S,T,c = input().split() S = int(S) T = int(T) if c == '>': if S > T:print('Yes') else:print('No') elif c == '<': if S < T:print('Yes') else:print('No') else: if S == T:print('Yes') else:print('No')