loop do
  a = gets.split
  break if a[1] == "?"
  case a[1]
    when "+"
      puts a[0] + a[2]
    when "-"
      puts a[0] - a[2]
    when "*"
      puts a[0] * a[2]
    when "/"
      puts a[0] / a[2]
  end
end