#include using namespace std; using ll = long long; using Graph = vector>; long long primeNumber(long long x) { bool fire = true; for(int i = 2; i <= sqrt(x); i++) { if(x % i == 0) { fire = false; } } return fire; } int main() { long long N,K; cin >> N >> K; vector A(N); for(int i = 0; i < N; i++) cin >> A[i]; vector B = A; sort(B.begin(),B.end()); reverse(B.begin(),B.end()); sort(A.begin(),A.end()); long long x = 0; long long ans = 0; for(int i = 0; i < N; i++) { for(int j = 0; j < N; j++) { long double Q = (A[x] * B[i]) / 2; if(Q >= K) { break; } x++; } if(N - x > 0ll) { ans += N - x; } } cout << ans << endl; }