list1 = input().split()
list2 = []
for item in list1:
    list2.append(int(item))
print(sum(list2), f"{sum(list2)/len(list2):.1f}", sep=(' '))