const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const arr = input.split(/\n/);
let result = 0;
arr.forEach(item => {
  const formula = item.split(" ");
  const a  = Number(formula[0]);
  const op = formula[1];
  const b  = Number(formula[2]);
  if(op == '?') return;
  if(op == '+') result = result + Number(a + b) + '\n';
  if(op == '-') result = result + Number(a - b) + '\n';
  if(op == '*') result = result + Number(a * b) + '\n';
  if(op == '/') result = result + Math.floor(Number(a / b)) + '\n';
})
console.log(result.trim());


