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

class Oct26 {

	public static void main(String[] args) {

		PrintWriter pw = null;

		try {
			pw = new PrintWriter(new File("oct26.txt"));
		} 
		catch (FileNotFoundException e) {
			System.out.println("file not found");
			return;
		}

		pw.println("Hello");
		pw.close();

		
		Scanner input = null;

		try {
			input = new Scanner(new File("nums.txt"));
		}
		catch (FileNotFoundException e) {
			System.out.println("file not found");
			return;
		}

		input.useDelimiter(",|\n");

		int[][] arr = new int[3][3];

		for(int i = 0; i < 3; i++) {
			for(int j = 0; j < 3; j++) {
				arr[i][j] = input.nextInt();
			}
		}
		
		printMatrix(arr);

	}
	static void printMatrix(int[][] array) {
		for(int i = 0; i < 3; i++) {
			for(int j = 0; j < 3; j++) {
				System.out.print(array[i][j] + " ");
			}
			System.out.println();
		}
	}

	

}
