public int solve(String input) {

		int result = 0;

		String[] datas = input.split(" ");
		int numOfGoogler = Integer.parseInt(datas[0]);
		int numOfSuprising = Integer.parseInt(datas[1]);
		int minOfBest = Integer.parseInt(datas[2]);

		for (int i = 0; i < numOfGoogler; i++) {
			int sumOfScore = Integer.parseInt(datas[i + 3]);
			int avg = sumOfScore / NUM_OF_JUDGE;
			int mod =sumOfScore % NUM_OF_JUDGE;

			if (avg >= minOfBest) {
				result++;

			} else if (avg == (minOfBest - 1)) {
				if (mod != 0) {
					result++;

				} else if (sumOfScore > 0 && numOfSuprising > 0) {
					result++;
					numOfSuprising--;
				}

			} else if (avg == (minOfBest - 2) && mod == 2 && numOfSuprising > 0) {
				result++;
				numOfSuprising--;
			}
		}

		return result;
	}