public int makepairs(int[] A, int X)
	{
		Arrays.sort(A);
		int count = 0;
		for (int i = 0; i < A.length - 1; i += 2) {
			if ((long) X <= ((long) A[i]) * A[i + 1]) {
				count++;
			}
		}
		return count;
	}