# 国語の点数、数学の点数、科学の点数 japanese_score, math_score, sience_score = map(int, input().split(",")) total_score = japanese_score+math_score+sience_score average_score = (japanese_score+math_score+sience_score)/3 print('合計点:%d' % total_score) print('平均点:%d' % average_score)