#include #include #include #include #include #include #include #include #include #include #include static const int MOD = 1000000007; using ll = long long; using u32 = uint32_t; using namespace std; template constexpr T INF = ::numeric_limits::max()/32*15+208; int main() { int n; cin >> n; vector v(n); for (auto &&i : v) scanf("%d", &i); int x, y; cin >> x >> y; int dist = max(abs(x), abs(y)), dmax = *max_element(v.begin(),v.end()); if(dist == 0) puts("0"); else if(count(v.begin(),v.end(), dist)) puts("1"); else cout << max(2, (dist+dmax-1)/dmax) << "\n"; return 0; }