def calc(a, op, b)
  case op
  when '+'
    puts "#{a + b}"
  when '-'
    puts "#{a - b}"
  when '*'
    puts "#{a * b}"
  when '/'
    puts "#{a / b}"
  else
  end
end

loop do
    a, op, b = gets.split
    break if op == '?'

    calc(a.to_i, op, b.to_i)
end

