s,t,c = map(str,input().split()) s = int(s); t = int(t) if c == "<": if s < t: print("Yes") else: print("No") elif c == ">": if s > t: print("Yes") else: print("No") else: if s == t: print("Yes") else: print("No")