var x = require('fs').readFileSync('/dev/stdin', 'utf8');
var lines = x.split(/\n/);

var calc = {
  '+': function (a, b) {return a + b; }, 
  '-': function (a, b) {return a - b; }, 
  '*': function (a, b) {return a * b; }, 
  '/': function (a, b) {return ~~(a / b); }
};

for (var i = 0; i < lines.length; i ++) {
  var arr = lines[i].split(' ');
  var a = Number(arr[0]);
  var op = arr[1];
  var b = Number(arr[2]);
  if (op === '?') {
    break;
  }
  console.log(calc[op](a, b));
}

