while true
    a, op, b = gets.chomp.split
    break if op == "?"

    a = a.to_i
    b = b.to_i

    case op
    when "+" then
        puts a + b
    when "-" then
        puts a - b
    when "*" then
        puts a * b
    when "/" then
        puts a / b
    end
end