// 下記のクラス構成をもつ学校に対して，
// １．全学年，全クラスを通して得られる１クラス当りの平均生徒数
// ２．各学年毎に得られる（その学年の全クラスを通して得られる）１クラス当りの平均生徒数
// ３．各クラス毎に得られる（３学年を通して得られる）１クラス当りの平均生徒数
// を求めたい。
// なお，class という単語は予約語なので使えないため，以下では，group, グループという
// 単語をクラスの代わりに用いている。
//
//        １組　２組　３組　４組　５組
//  １年    33    35    34    32    36
//　２年    34    33    35    33    31
//　３年    31    32    36    30    35
//
class ClassSize {
    public static void main( String[] args ) {
	int[][] size = { { 33, 35, 34, 32, 36 },
			 { 34, 33, 35, 33, 31 },
			 { 31, 32, 36, 30, 35 } };

	int[] grade = new int[3];                              // grade[i] = 学年 i の総生徒数
	int[] group = new int[5];                              // group[i] = グループ i の総生徒数
	int   sum;                                             // 学校全体の総生徒数
	int   i, j;

	for( i = 0 ; i < grade.length ; i++ )  grade[i] = 0;   // 配列の初期化
	for( i = 0 ; i < group.length ; i++ )  group[i] = 0;   // 配列の初期化
	sum = 0;

	for( i = 0 ; i < 3 ; i++ ) {                           // i = 学年の index
	    for( j = 0 ; j < 5 ; j++ ) {                       // j = グループの index



	    }
	}

	System.out.println( "#Average number of students in a group." );     // 全学年・グループを通した１グループ当りの平均学生数
	System.out.println( /*?????*/ );

	System.out.println( "#Average number of students for each grade." ); // 学年別に見た１グループ当りの平均学生数
	for( i = 0 ; i < 3 ; i++ ) {
	    System.out.print( /*?????*/ + " " );
	}
	System.out.println();

	System.out.println( "#Average number of students for each group." ); // グループ別に見た１グループ当りの平均学生数
	for( i = 0 ; i < 5 ; i++ ) {
	    System.out.print( /*?????*/ + " " );
	}
	System.out.println();
    }
}
