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