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