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

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

		Scanner fin = null;

		try {
			File f = new File("scores.txt");
			fin = new Scanner(f);

			// fin = new Scanner(new File("scores.txt"));

		}
		catch(FileNotFoundException e) {
			System.out.println("Exception caught");
			System.out.println(e);
			System.exit(0);
		}

		System.out.println("Ready to read from scanner");
	
		// read first integer which holds number of values in file

		int count = fin.nextInt();
		System.out.printf("count: %d\n", count);

		int[] scores = new int[count];

		for(int i = 0; i < count; i++) {
			scores[i] = fin.nextInt();
		}	

		printArray(scores);

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


}
