'use strict';
(function(stdin) {
  var EOF = /\w* \? \w*/;
  var inputs  = stdin.toString().split(EOF,1).join().trim().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 >> 0;}
    };

    return data.map(function(v) {
      return Calc[v[1]](parseInt(v[0],10),parseInt(v[2]));
    }).join('\n');

 }(inputs.map(function(v){return v.split(' ')})
  )); 
  console.log(result); 
}(require('fs').readFileSync('/dev/stdin', 'utf8')));