#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); for (int i = 0; i < n; i++) { cin >> A[i]; } sort(A.begin(), A.end()); deque q(A.begin(), A.end()); while (q.size() > 1) { int p1 = q.front(); q.pop_front(); int p2 = q.front(); if (l <= 1LL * p1 * p2 && 1LL * p1 * p2 <= r) { q.push_front(p1); break; } } while (q.size() > 1) { int p1 = q.back(); q.pop_back(); int p2 = q.back(); if (l <= 1LL * p1 * p2 && 1LL * p1 * p2 <= r) { q.push_back(p1); break; } } int sz = q.size(); cout << sz << endl; }