k=input().split() s,t=map(int,k[0:2]) c=k[2] if c==">": if s>t: print("YES") else: print("NO") elif c=="<": if s