using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplicationSharp { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); decimal[] d = new decimal[n]; String[] s = Console.ReadLine().Split(' '); for(int i = 0; i < n; i++) { d[i] = decimal.Parse(s[i]); } s = Console.ReadLine().Split(' '); decimal x = decimal.Parse(s[0]), y = decimal.Parse(s[1]); //答えが1のとき int check = Array.IndexOf(d, Math.Max(x, y)); if (check != -1) Console.WriteLine(1); else Console.WriteLine(Math.Max((int)Math.Ceiling(Math.Max(x, y) / d[n - 1]),2)); } } }