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