There are $n$ monsters standing in a row numbered from $1$ to $n$. The $i$-th monster has $h_i$ health points (hp). You have your attack power equal to $a$ hp and your opponent has his attack power equal to $b$ hp.

You and your opponent are fighting these monsters. Firstly, you and your opponent go to the first monster and fight it till his death, then you and your opponent go the second monster and fight it till his death, and so on. A monster is considered dead if its hp is less than or equal to $0$.

The fight with a monster happens in turns.   You hit the monster by $a$ hp. If it is dead after your hit, you gain one point and you both proceed to the next monster.  Your opponent hits the monster by $b$ hp. If it is dead after his hit, nobody gains a point and you both proceed to the next monster. 

You have some secret technique to force your opponent to skip his turn. You can use this technique at most $k$ times in total (for example, if there are two monsters and $k=4$, then you can use the technique $2$ times on the first monster and $1$ time on the second monster, but not $2$ times on the first monster and $3$ times on the second monster).

Your task is to determine the maximum number of points you can gain if you use the secret technique optimally.


-----Input-----

The first line of the input contains four integers $n, a, b$ and $k$ ($1 \le n \le 2 \cdot 10^5, 1 \le a, b, k \le 10^9$) — the number of monsters, your attack power, the opponent's attack power and the number of times you can use the secret technique.

The second line of the input contains $n$ integers $h_1, h_2, \dots, h_n$ ($1 \le h_i \le 10^9$), where $h_i$ is the health points of the $i$-th monster.


-----Output-----

Print one integer — the maximum number of points you can gain if you use the secret technique optimally.


-----Examples-----
Input
6 2 3 3
7 10 50 12 1 8

Output
5

Input
1 1 100 99
100

Output
1

Input
7 4 2 1
1 3 5 4 2 7 6

Output
6
[{"code": "n, a, b, k = map(int, input().split())\nH = list(map(int, input().split()))\nfor i in range(n):\n    H[i] %= (a + b)\n    if H[i] == 0:\n        H[i] = a + b\nH.sort()\nans = 0\nfor x in H:\n    if x <= a:\n        ans += 1\n    else:\n        tok = (x + a - 1) // a - 1\n        if k >= tok:\n            k -= tok\n            ans += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "from sys import stdin\ninput = stdin.readline\nn,a,b,k = map(int,input().split())\nl = list(map(int,input().split()))\ndef cost(h):\n\th -= (a+b)*((h-(a+b))//(a+b))\n\tif h > (a+b):\n\t\th-=(a+b)\n\treturn (h-1)//a\npyk = []\nfor i in range(n):\n\tpyk.append(cost(l[i]))\npyk.sort()\nwyn = 0\nsu = 0\nfor i in range(n):\n\tsu += pyk[i]\n\tif su <= k:\n\t\twyn += 1\nprint(wyn)", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "n, a, b, k = map(int, input().split())\nh = list(map(int, input().split()))\n\nhow_much_to_spend = [0 for _ in range(n)]\nfor i in range(n):\n\tif h[i] % (a+b) == 0:\n\t\thow_much_to_spend[i] = (a+b -1 ) // a\n\telse:\n\t\thow_much_to_spend[i] = ( (h[i] % (a+b)) - 1) // a\n\nhow_much_to_spend = sorted(how_much_to_spend)\nans = 0\nfor item in how_much_to_spend:\n\tif item <= k:\n\t\tans += 1\n\t\tk -= item\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "from math import ceil\n\n(n, a, b, k) = map(int, input().split())\nh = list(map(int, input().split()))\nfor i in range(n):\n    h[i] -= (h[i]//(a+b))*(a+b)\n    if h[i] == 0:\n        h[i] += a+b\nh.sort()\nans = 0\ni = 0\nwhile k > 0 and i < n:\n    if ceil(h[i]/a) - 1 <= k:\n        k -= ceil(h[i]/a) - 1\n        ans += 1\n    else:\n        k = -1\n    i += 1\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "n, a, b, k = list(map(int, input().split()))\nar = list(map(int, input().split()))\nkek = []\nans = 0\nfor elem in ar:\n    x = elem % (a + b)\n    if x == 0 or x > a:\n        if x == 0:\n            x = a + b\n        kek.append((x + a - 1) // a - 1)\n    else:\n        ans += 1\nkek.sort()\ni = 0\nwhile i < len(kek) and k > 0:\n    if k - kek[i] >= 0:\n        k -= kek[i]\n        i += 1\n        ans += 1\n    else:\n        break\nprint(ans)", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "n, a, b, k = map(int, input().split())\nl1 = list(map(int, input().split()))\nnew = []\nfor x in l1:\n    x = x%(a + b)\n    if x > 0 and x <= a:\n        new.append(0)\n    else :\n        if x == 0:\n            x = a+b\n        x-=a\n        temp = x//a\n        x = x-temp*a\n        if x > 0:\n            temp+=1\n        new.append(temp)\nnew.sort()\nanswer = 0\nfor item in new:\n    if k - item >=0:\n        k -= item\n        answer+=1\n    else : \n        break\nprint(answer)", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "n, a, b, k = list(map(int, input().split()))\nhp = sorted([((int(x) % (a+b) or a+b) + a - 1) // a - 1 for x in input().split()])\n\nscore = 0\n\nfor h in hp:\n    if h <= k:\n        k -= h\n        score += 1\n\nprint(score)\n", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "n, a, b, k = map(int, input().split())\nH = list(map(int,input().split()))\nans = 0\n\nTQ = []\n\nfor h in H:\n    h %= a + b\n    if not h:\n        h += a + b\n    x = (h - 1) // a\n    if x: TQ.append(x)\n    else: ans += 1\n\nTQ.sort()\n\nfor tq in TQ:\n    if k >= tq:\n        k -= tq\n        ans += 1\n    else:\n        break\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "import math\n\nn, a, b, k = list(map(int, input().split()))\nh = list(map(int, input().split()))\nska = []\nfor i in range (0, n) :\n    totm = h[i] % (a + b)\n    if totm == 0 :\n        totm = a + b\n    ska.append(math.ceil(totm / a) - 1)\nska.sort()\n# print(ska)\ncnt = 0\nans = 0\ni = 0\nwhile i < n and cnt + ska[i] <= k :\n    ans += 1\n    cnt += ska[i]\n    i += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "import sys \ninput=sys.stdin.readline \nn,a,b,k=map(int,input().split())\nfrom math import ceil \narr=[int(i) for i in input().split()]\nif a<= b:\n    req=[]\n    sm=0 \n    sm+=sum(i<=a for i in arr)\n    arr=[i for i in arr if i>a]\n    tot=a+b\n    chance=k \n    for x in arr:\n        now =x%tot \n        if now>0 and now<=a:\n            sm+=1 \n        else: \n            curr=now \n            if curr==0:\n                curr=tot \n            curr-=a \n            req.append(ceil(curr/a))\n    req.sort() \n   # print(req)\n    for x in req:\n        if x<=chance:\n            sm+=1 \n            chance-=x \n        else:\n            break \n    print(sm)\n    \nelse:\n    sm=0 \n    sm+=sum(i<=a for i in arr)\n    arr=[i for i in arr if i>a]\n    tot=a+b \n    chance=k \n    for x in arr:\n        now=x%tot \n        if now>0 and now<=a: \n            sm+=1 \n        else: \n            if chance:\n                sm+=1 \n                chance-= 1 \n    print(sm)", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "n,a,b,k=map(int,input().split())\nh=input().split()\nfor i in range(n):\n    h[i]=int(h[i])\nls=[]    \nfor i in range(n):\n    if(h[i]%(a+b)==0):\n        h[i]=a+b\n        if(h[i]%a==0):mauka=h[i]//a\n        else:mauka=h[i]//a+1\n        ls.append(mauka-1)\n    else:\n        h[i]=h[i]%(a+b)\n        if(h[i]<=a):ls.append(0)\n        else:\n            if(h[i]%a==0):mauka=h[i]//a\n            else:mauka=h[i]//a+1\n            ls.append(mauka-1)\nls.sort()\ncount=0\nfor i in range(n):\n    if(ls[i]<=k):\n        k-=ls[i]\n        count+=1\nprint(count)        ", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "import math\nimport sys\ninput = sys.stdin.readline\nN, a, b, k = list(map(int, input().split()))\nh = list(map(int, input().split()))\n\nans = 0\ntmp = []\nfor i in range(N):\n    j = h[i] % (a+b)\n    if j > 0 and j <= a:\n        ans += 1\n    else:\n        if j == 0:\n            j += b\n        else:\n            j -= a\n        tmp.append(j)\n\ntmp.sort()\nfor x in tmp:\n    if k >= math.ceil(x / a):\n        k -= math.ceil(x / a)\n        ans += 1\n    else:\n        break\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "# def red(x,a,b):\n#     x%=a+b\n#     if(x==0):\n#         x=a+b\n#     return \n\ndef main():\n    n,a,b,k = list(map(int,input().split()))\n    arr = [ (a+b-1)//a if x%(a+b)==0 else (x%(a+b)-1)//a for x in map(int,input().split()) ]\n    arr.sort()\n    ans = 0\n    for x in arr:\n        if(k<x):\n            break\n        k-=x\n        ans+=1\n    print(ans)\n        \ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}]