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

    result = 0
    a = a.to_i
    b = b.to_i
    case op
    when "+" then result = a + b
    when "-" then result = a - b
    when "*" then result = a * b
    when "/" then result = a / b
    end

    puts result
end