def average_t(ave, number, new):
	"""
	Add up all the temperature and count average.

	:param ave: Integer, The average of all temperature before last input
	:param number: Integer, number>0. The total amount of temperature
	:param new: Integer, new!=EXIT, The lasted temperature input
	:return: ave: Integer, The current average temperature
	"""
	ave = (ave*(number-1)+new) / number
	return ave