#include #include using namespace std; int n; int d[15]; int x, y; int main() { cin >> n; for (int i = 0; i < n; i++) cin >> d[i]; cin >> x >> y; if (x < 0) x = -x; if (y < 0) y = -y; int ans = 1145141919; for (int i = 0; i < n; i++) { int cnt; if (max(x, y) % d[i] == 0) { cnt = max(x, y) / d[i]; } else if (max(x, y) < d[i]) { cnt = 2; } else { cnt = max(x, y) / d[i] + 1; } ans = min(ans, cnt); } cout << ans << endl; return 0; } //自信ない