n = int(input()) d = list(map(int,input().split(' '))) x, y = map(int,input().split(' ')) x = abs(x) y = abs(y) if x > y: x,y = y,x if y == 0: print(0) elif y in d: print(1) else: print(max(2,(y-1) // max(d) + 1))