inp = str(input()) s = inp[0:1] t = inp[2:3] c = inp[4:5] ans='NO' if c=='<': if s < t: ans='YES' if c=='>': if s > t: ans='YES' if c=='=': if s==t: ans='YES' print (ans)