def calcs(a, op, c)
	if (op == '+')
		return a + c
	elsif (op == '-')
		return a - c
	elsif (op == '*')
		return a * c
	elsif (op == '/')
		return a / c
	end
end

input_arr = []
while input = gets.chomp
	a, op, c = input.split(' ')
	break if (op == '?')
	a_i = a.to_i
	c_i = c.to_i
	input_arr << [a_i, op, c_i]
end



input_arr.each{|i|
	a = []
	i.each{|j|
		a << j
	}
	puts calcs(a[0], a[1], a[2])
}