def calc(a,b,op)
  case op
  when "+"
    a + b
  when "-"
    a - b
  when "*"
    a * b
  when "/"
    a / b
  end
end

while line = gets do
  return if line =~ /\?/
  a, op, b = line.sprit

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