s = input().split() s[2] = "==" if s[2] == "=" else "=" print("YES" if eval(s[0] + s[2] + s[1]) else "NO")