s,t=map(int,input().split()) hi=input() 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")