public static void others(String[] args) {
		Scanner in = new Scanner(System.in);
		int cnt = 0;
		while (true) {
			cnt++;
			a = in.nextInt();
			b = in.nextInt();
			if (a == 0 && b == 0)
				break;
			System.out.println("Jury #" + cnt);
			p = new short[a + 1];
			d = new short[a + 1];
			for (int i = 1; i <= a; i++) {
				p[i] = in.nextShort();
				d[i] = in.nextShort();
			}
			dp();
			for (int k = 0; k <= add; k++) {
				if (arr[a][b][add + k] > arr[a][b][add - k]) {
					System.out.println("Best jury has value "
							+ ((arr[a][b][add + k] + k) / 2)
							+ " for prosecution and value "
							+ ((arr[a][b][add + k] - k) / 2) + " for defence:");
					print(a, b, k);
					break;
				} else if (arr[a][b][add - k] != -1) {
					System.out.println("Best jury has value "
							+ ((arr[a][b][add - k] - k) / 2)
							+ " for prosecution and value "
							+ ((arr[a][b][add - k] + k) / 2) + " for defence:");
					print(a, b, -k);
					break;
				}
			}
			System.out.println();
			System.out.println();
		}
	}