S,T,c = map(str,input().split())

S = int(S)
T = int(T)

if (c == ">" and S > T) or (c == "<" and S < T) or (c == "=" and S == T):
	print("YES")
else:
	print("NO")