public void process(File file) throws Exception{
		BufferedReader reader = new BufferedReader(new FileReader(file));
		int T = Integer.parseInt(reader.readLine().trim());
		PrintWriter writer = new PrintWriter(new File("out.txt"));
		
		for(int i = 0; i < T; i++){
			init();
			String[] nums = reader.readLine().trim().split(" ");
			N = Integer.parseInt(nums[1].trim());
			
			String[] ks = reader.readLine().trim().split(" ");
			for(String k : ks){
				keys[Integer.parseInt(k.trim())] ++;
				totalKey++;
			}
			
			for(int j = 1; j <= N; j++){
				String[] data = reader.readLine().trim().split(" ");
				key4Chest[j] = Integer.parseInt(data[0].trim());
				int size = Integer.parseInt(data[1].trim());
				List<Integer> list = new ArrayList<Integer>();
				for(int t = 0; t < size; t++){
					list.add(Integer.parseInt(data[2 + t].trim()));
				}
				chest2key.put(j, list);
			}
			
			visit(0);
			if(found){
				System.out.println("Case #" + (i+1) + ": " + ans);
				writer.println("Case #" + (i+1) + ": " + ans);;
			} else {
				System.out.println("Case #" + (i+1) + ": IMPOSSIBLE");
				writer.println("Case #" + (i+1) + ": IMPOSSIBLE");
			}
//			writer.println("Case #" + (i+1) + ": " + res);
		}
		writer.close();
	}