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