
answers = []
last_input_op = nil

def calc(a, b, op)
  if op == "+"
    return a + b
  elsif op == "-"
    return a - b
  elsif op == "*"
    return a * b
  elsif op == "/"
    return a / b
  end
end

while true
  input_value = []
  input_value = gets.chomp.split
  a = input_value[0].to_i
  op = input_value[1]
  b = input_value[2].to_i
  if op == "?"
    break
  end
  answers.push(calc(a, b, op))
end

puts answers.join("\n")