s, t, c = input().split() print(["NO", "YES"][eval(s + c + c*(c=="=") + t)])