import java.util.ArrayList;
import java.util.Scanner;
public class AverageScore {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
ArrayList<Double[]> arr = new ArrayList<>();
Double[] courses = new Double[]{0.0, 0.0, 0.0, 0.0};
for (int i = 0; i < 5; i++){
String[] scoreStr = input.nextLine().split(" ");
Double[] scores = new Double[6];
Double sum = 0.0;
for (int j = 0; j < 4; j++) {
scores[j] = Double.parseDouble(scoreStr[j]);
courses[j] += Double.parseDouble(scoreStr[j]);
sum += scores[j];
}
scores[4] = sum;
scores[5] = sum / scoreStr.length;
arr.add(scores);
}
for (int i = 0; i < arr.size(); i++){
System.out.printf("student %s:sum=%.0f, avg=%.1f\n", i+1, arr.get(i)[4], arr.get(i)[5]);
}
for (int i = 0; i < courses.length; i++){
System.out.printf("course %d:ave=%.1f\n",i+1, courses[i] / 5);
}
}
}