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