class Expression
  def initialize(proc, a, b)
    @proc = proc
    @a = a
    @b = b
  end
  
  def solve
    if @proc == '+'
      @a + @b
    elsif @proc == '-'
      @a - @b
    elsif @proc == '*'
      @a * @b
    elsif @proc == '/'
      @a / @b
    end
  end
end

expressions = Array.new(0)

while true
  expression_array = gets.split
  if expression_array[1] == '?'
    break
  end
  
  a = expression_array[0].to_i
  proc = expression_array[1]
  b = expression_array[2].to_i
  expressions << Expression.new(proc, a, b)
end

expressions.each do |expression|
  puts expression.solve
end