An average calculator for integers