while line = gets
  a, op, b = line.chomp.split(" ")
  break if op == "?"
  a = a.to_i
  b = b.to_i
  if op == '+'
    print a + b, "\n"
  elsif op == '-'
    print a - b, "\n"
  elsif op == '*'
    print a * b, "\n"
  elsif op == '/'
    print a / b, "\n"
  end
end