function Main(input) {
  input = input.split("\n");
  var i = 0;
  var result = NaN;
  while(1){
    var tmp = input[i++];
    tmp = tmp.split(' ');
    switch(tmp[1]){
      case '+':
        result = parseInt(tmp[0]) + parseInt(tmp[2]);
        break;
      case '-':
        result = tmp[0] - tmp[2];
        break;
      case '*':
        result = tmp[0] * tmp[2];
        break;
      case '/':
        result = Math.floor(tmp[0] / tmp[2]);
        break;
      case '?':
        result = NaN;
        break;
    }
    if(isNaN(result)){
      break;
    }else{
      console.log(result);
    }
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
