const input = require('fs').readFileSync('/dev/stdin', 'UTF-8');

const calculator = input => {
  const data = input.split('\n');
  const result = [];

  data.forEach(val => {
    const [a, op, b] = val.split(' ').map((val, index) => {
      return index === 1 ? val : Number(val);
    });

    if (op === '?') return false;
    switch (op) {
      case '+':
        result.push(a + b);
        break;
      case '-':
        result.push(a - b);
        break;
      case '*':
        result.push(a * b);
        break;
      case '/':
        result.push(Math.floor(a / b));
    }
  });

  console.log(result.join('\n'));
};

calculator(input);

