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