#include #include using namespace std; int main() { int N, L, H; cin >> N; cin >> L; cin >> H; vector v(N); for(int i = 0; i < N; i++) cin >> v[i]; int count = 0; for(int i = L; i <= H; i++) { int x = 0; for(auto &c : v) { if(!(i%c)) x++; } if (x == 1) count++; } cout << count; }