#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include using namespace std; using ll = long long; //TLEč§£ int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); int N; ll K; cin >> N >> K; ll ans = 0; vector a(N+1); K <<= 1; for( int i = 0; i < N; ++i ) { cin >> a[i]; } for( int i = 0; i < N; ++i ) { if( a[i]*a[i] >= K ) ++ans; for( int j = i+1; j < N; ++j ) { if( a[i]*a[j] >= K ) ans += 2; } } cout << ans << "\n"; }