while (n = gets.chomp) != '0 ? 0'
  a, b, c = n.split(' ')
  a = a.to_i
  c = c.to_i
  ans =
  case b
  when '+' then a + c
  when '-' then a - c
  when '*' then a * c
  when '/' then a / c
  end
  puts ans
end