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