inputs = []
loop do
    input = gets.split(" ")
    if input[1] == "?"; break; end
    inputs << input
end
inputs.size.times do |i|
    a, b = inputs[i][0].to_i, inputs[i][2].to_i 
    case inputs[i][1]
    when "+"
        puts a + b
    when "-"
        puts a - b
    when "*"
        puts a * b
    when "/"
        puts a / b
    end
end
