S, T, c = input().strip().split(' ') if c == '=': c *= 2 print(['NO', 'YES'][eval(S+c+T)])