age_list = list(map(int,input().split())) print(sum(age_list),'%.1f'%(sum(age_list)/len(age_list)),sep=' ')