
import java.util.*;
public class Main {
public static void main(String[] args) {
final byte SIZE = 5;
int[][] base = new int [SIZE][SIZE];
Random r = new Random();
int key;
double average=0;
for(int i = 0; i<SIZE; ++i ){
for(int j = 0; j<SIZE; ++j ) {
key = r.nextInt(11) + 10;
average += key;
base[i][j] = key;
if (j == SIZE - 1) {
System.out.println(key);
} else {
System.out.print(key + " ");
}
}
}
average /= SIZE*SIZE;
System.out.print(average);
}
}


