MODE = "stdio"

line = Array.new

if(defined? MODE)
  line = STDIN.read.split("\n")
else
  tmp = "\
  1 + 2
  56 - 18
  13 * 2
  100 / 10
  27 + 81
  0 ? 0
  ".split("\n")
  tmp.each{|s|
    line << s.strip
  }
end

r=Array.new
line.map{|s|s.split(" ")}.each do |a,op,b|

  a=a.to_i
  b=b.to_i

  r<<a+b if op=="+"
  r<<a-b if op=="-"
  r<<a*b if op=="*"
  r<<a/b if op=="/"
  break if op=="?"

end

r.map{|n| puts n}