import java.util.Scanner;
public class 平均分 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
for (int j = 0; j < 3; j++) {
int sum = 0;
for (int i = 0; i < 4; i++) {
System.out.println("第" + (i + 1) + "个学生的成绩:");
int score = scanner.nextInt();
sum += score; // sum = sum + score
}
System.out.println("第" + (j + 1) + "个班的平均成绩为:" + sum / 4);
}
}
}