#include "bits/stdc++.h" #define int long long using namespace std; signed main() { ios_base:: sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n, l, r; cin >> n >> l >> r; vector A(n); bool isZero = false; int ct0 = 0, ct1 = 0; for (int i = 0; i < n; i++) { cin >> A[i]; if (A[i] == 0) { isZero = true; ++ct0; } else { ++ct1; } } sort(A.begin(), A.end()); int ct = 0; for (int i = 0; i + 1 < n; i++) { int c = 1; for (int j = i + 1; j < n; j++) { if (l <= 1LL * A[j - 1] * A[j] && 1LL * A[j - 1] * A[j] <= r) { ++c; } } ct = max(ct, c); } ct = max(ct0 + (ct1 > 0), ct); cout << ct << endl; }