s,t,c = map(str,input().split()) if c == '<': if int(s) < int(t): print("YES") else: print("NO") if c == '>': if int(s) > int(t): print("YES") else: print("NO") if c == '=': if int(s) == int(t): print("YES") else: print("NO")