a,b,c = input().split() if c == "<": if int(a) < int(b): print("YES") else: print("NO") elif c == ">": if int(a) > int(b): print("YES") else: print("NO") else: if int(a) == int(b): print("YES") else: print("NO")