while line = gets.chomp do
  a,op,b = line.split(" ")
  a = a.to_i
  b = b.to_i
  case op
  when "+" then
    ans = a + b
  when "-" then
    ans = a - b
  when "*" then
    ans = a * b
  when "/" then
    ans = a / b
  when "?" then
    break
  end
  printf("%d",ans)
end
