'use strict';
(function(stdin) {
  var lines  = stdin.toString().split('\n');
  var result = (function(data) {
    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);}
    };
    var result = [];
    var tmp;
    var index = 0;
    while (true) {
        tmp = data[index++].split(' ');
        if (tmp[1] === '?') break;
        result.push(Calc[tmp[1]](parseInt(tmp[0],10),parseInt(tmp[2],10)));
    }
    return result.join('\n');
  }(lines
  ));
  console.log(result);
}(require('fs').readFileSync('/dev/stdin', 'utf8')));