l = list(map(int,input().split()))
sum = 0 
for i in l:
    sum = sum + int(i) 
print(l) 
print(sum,end=' ') 
print("%.1f"%(sum/len(l)))