# frozen_string_literal: true

loop do
  line = readline.split(' ')
  a = line[0].to_i
  op = line[1]
  b = line[2].to_i
  break if op == '?'

  puts case op
       when '+'
         a + b
       when '-'
         a - b
       when '*'
         a * b
       when '/'
         a / b
  end
end

