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

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

		Scanner fin = null;

		try {
			File f = new File("scores.csv");
			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);
		}

		fin.useDelimiter("WHACK-A-MOLE|\n");

		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);

		String name1 = fin.next();
		String name2 = fin.next();

		System.out.printf("%s ~ %s\n", name1, name2);

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


}
