#include using namespace std; int main() { int n; cin >> n; vector v(n); for(int i = 0; i < n; i++){ cin >> v[i]; } int x, y; cin >> x >> y; x = abs(x); y = abs(y); if(x == 0 && y == 0){ cout << 0 << endl; return 0; } for(int i = 0; i < n; i++){ if(max(x, y) == v[i]){ cout << 1 << endl; return 0; } } int m = *max_element(v.begin(), v.end()); cout << max(2, (max(x, y) + m - 1) / m) << endl; return 0; }