from statistics import mean
lst = []
x = int(input())
while x != 0:
lst.append(x)
print('Сумма -> {} Среднее -> {}'.format(sum(lst), mean(lst)))
from statistics import mean
lst = []
x = int(input())
while x != 0:
lst.append(x)
x = int(input())
print('Сумма -> {} Среднее -> {}'.format(sum(lst), mean(lst)))