#include #include using namespace std; int main() { int N; long long K; scanf("%d%lld", &N, &K); vector A(N); for (int &x : A) scanf("%d", &x); long long cnt = 0; for (int i = 0; i < N; ++i) for (int j = 0; j < N; ++j) if ((long long)A[j] >= (2 * K + A[i] - 1) / A[i]) ++cnt; printf("%lld\n", cnt); }