while true
    equation = gets.split()
    if equation[1] == "?"
        break
    else
        if equation[1] == "+"
            puts equation[0].to_i + equation[2].to_i
        elsif equation[1] == "-"
            puts equation[0].to_i - equation[2].to_i
        elsif equation[1] == "*"
            puts equation[0].to_i * equation[2].to_i
        elsif equation[1] == "/"
            puts (equation[0].to_i / equation[2].to_i).floor
        end
    end
end
