#!/usr/bin/env ruby

strings = []
results = []
pred = ["+","-","*","/","?"]
loop do
    strings = gets.split
    if strings[1] == pred[4] then
        break
    end

    case strings[1]
    when pred[0] then
        results << strings[0].to_i + strings[2].to_i
    when pred[1] then
        results << strings[0].to_i - strings[2].to_i
    when pred[2] then
        results << strings[0].to_i * strings[2].to_i
    when pred[3] then
        if strings[2] == 0 then
            break
        end
        results << strings[0].to_i / strings[2].to_i
    end
end
puts results
