loop do
  lhs, op, rhs = gets.split
  lhs, rhs = [lhs, rhs].map(&:to_i)
  puts case op
  when ?+ then lhs + rhs
  when ?- then lhs - rhs
  when ?* then lhs * rhs
  when ?/ then lhs / rhs
  when ?? then break
  end
end

