loop do
  a, op, b = gets.chomp.split(" ")
  a, b = a.to_i, b.to_i

  case op
  when "+"
    puts a + b
  when "-"
    puts a - b
  when "*"
    puts a * b
  when "/"
    puts a / b
  when "?"
    break
  else
    exit 1
  end
end