while true do
    i = gets
    a = i.split[0].to_i
    b = i.split[2].to_i
    o = i.split[1]
    break if o == "?"
    print a + b, "\n" if o == "+"
    print a - b, "\n" if o == "-"
    print a * b, "\n" if o == "*"
    print a / b, "\n" if o == "/"
end
