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