const data = require('fs').readFileSync(0, 'utf-8')

const lines = data.split('\n').map(l => {
  const [x, op, y] = l.split(' ')
  return [Number(x), op, Number(y)]
})

lines.forEach(([x, op, y]) => {
  switch (op) {
    case '+':
      console.log(x + y)
      break
    case '-':
      console.log(x - y)
      break
    case '*':
      console.log(x * y)
      break
    case '/':
      console.log(Math.floor(x / y))
      break
    case '?':
      break
  }
})

