arr=Array.new
while str = STDIN.gets
        op1,op2,op3=str.chomp.split.map{|v|v.to_s}
        break if op2 == '?'
        op1=op1.to_i
        op3=op3.to_i
        case op2
        when '+' then
                arr.push(op1+op3)
        when '-' then
                arr.push(op1-op3)
        when '/' then
                arr.push(op1/op3)
        when '*' then
                arr.push(op1*op3)
        end
end
arr.each do | answer |
        puts answer
end