mas = []
while True:
current = int(input())
if current == 0:
break
if current % 2 == 1 and current < 20:
mas.append(current)
print( sum(mas) )
print( len(mas) )
print( sum(mas)/len(mas)
mas = []
while True:
current = int(input())
if current == 0:
break
if current % 2 == 1 and current < 20:
mas.append(current)
print( sum(mas) )
print( len(mas) )
print( sum(mas)/len(mas)