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")