#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; vector d(n); for(auto &v:d) cin >> v; ll x, y, d2; cin >> x >> y; d2 = max(abs(x), abs(y)); if(d2 == 0){ cout << 0 << '\n'; return 0; } for(int i = 0; i < n; i++){ if(d2 == d[i]){ cout << 1 << '\n'; return 0; } } sort(d.begin(), d.end()); if(d2 < d[0]){ cout << 2 << '\n'; return 0; } cout << (d2 + d.back() - 1) / d.back() << '\n'; }