static int process(String line) {
		int cases = Integer.parseInt(line.trim());
		for(int c = 1; c <= cases; c++) {
			String s = readLine().trim();
			while(s.compareTo("") == 0) {
				s = readLine().trim();
			}
			int[] arr = giveArray(s.split(" "));
			int n = arr[0], b = arr[1], r = arr[2];
			
			int[] jump = new int[101];
			for(int i = 0; i < b; i++) {
				String str = readLine().trim();
				int[] ld = giveArray(str.split(" "));

				jump[ld[0]] = ld[1];
			}
			
			int curr = 0;
			int[] pos = new int[n];
			//Arrays.fill(pos, jump[1] > 0 ? jump[1] : 1);
			Arrays.fill(pos, 1);
			while(r > 0) {
				int val = Integer.parseInt(readLine().trim());
				curr = curr % n;
				pos[curr] += val;
				if(pos[curr] > 100)
					pos[curr] = 100;
				if(jump[pos[curr]] > 0) {
					pos[curr] = jump[pos[curr]];
				}
				if(pos[curr] == 100) {
					break;
				}
				curr++;
				r--;
			}
			r--;
			while(r > 0) {
				readLine();
				r--;
			}
			for(int i = 1; i <= n; i++) {
				System.out.println(String.format("Position of player %d is %d.", i, pos[i - 1]));
			}
		}
		return 0;
	}