while true do
   inputs = gets.split
   if inputs[1] == '?'
      break
   else
      a = inputs[0].to_i
      op = inputs[1]
      b = inputs[2].to_i
      case op
      when '+' then
         puts "#{a + b}"
      when '-' then
         puts "#{a - b}"
      when '*' then
         puts "#{a * b}"
      when '/' then
         puts "#{(a / b).floor}"
      end
   end
end