while line = gets do
  a, op, b = line.split
  a = a.to_i
  b = b.to_i
  case op
  when "+"
    puts a + b
  when "-"
    puts a - b
  when "*"
    puts a * b
  when "/"
    puts ( a / b ).floor
  when "?"
    break
end