import math x = input() y = x.split(',') z = map(int, y) s = sum(z) a = math.floor(s/len(y)*10)/10 print('合計点:'+str(s)+'\n'+'平均点:'+str(a))