public static void main(String[] args) throws FileNotFoundException {
		File file = new File(args[0]);
		Scanner scanner = new Scanner(file);

		int dim = Integer.parseInt(scanner.nextLine().trim());
		int[][] matrix = new int[dim][dim];

		int cnt = 0;
		while (scanner.hasNextLine() && cnt < dim) {
			String row = scanner.nextLine().trim();
			String[] temp = row.split(",");
			for (int col = 0; col < dim; col++) {
				matrix[cnt][col] = Integer.parseInt(temp[col]);
			}
			cnt++;
		}
		scanner.close();

		getValidPath(matrix);
	}