import java.util.Scanner;
import java.io.FileNotFoundException;
import java.io.File;

class Oct14b {
	public static void main(String[] args) {

		Scanner fin = null;

		try {
			fin = new Scanner(new File("data2.txt"));
		}
		catch(FileNotFoundException e) {
			System.out.println("File not found");
			System.exit(0);
		}

		String name = fin.nextLine();
		int age = fin.nextInt();
		double height = fin.nextDouble();

		System.out.printf("name: %s, age: %d, height: %f\n", name, age, height);

		
		try {
			fin = new Scanner(new File("matrix.txt"));
		}
		catch(FileNotFoundException e) {
			System.out.println("File not found");
			System.exit(0);
		}

		int numRows = fin.nextInt();
		int numCols = fin.nextInt();

		int[][] matrix = new int[numRows][numCols];

		for(int i = 0; i < numRows; i++) {
			for(int j = 0; j < numCols; j++) {
				matrix[i][j] = fin.nextInt();			
			}
		}

		printMatrix(matrix);

	}

	static void printMatrix(int[][] m) {
		for(int i = 0; i < m.length; i++) {
			for(int j = 0; j < m[i].length; j++) {
				System.out.printf("%d ", m[i][j]);
			}
			System.out.println();
		}
	}
}
