Some number of chocolate pieces were prepared for a training camp.
The camp had N participants and lasted for D days.
The i-th participant (1 \leq i \leq N) ate one chocolate piece on each of the following days in the camp: the 1-st day, the (A_i + 1)-th day, the (2A_i + 1)-th day, and so on.
As a result, there were X chocolate pieces remaining at the end of the camp. During the camp, nobody except the participants ate chocolate pieces.
Find the number of chocolate pieces prepared at the beginning of the camp.

-----Constraints-----
 - 1 \leq N \leq 100
 - 1 \leq D \leq 100
 - 1 \leq X \leq 100
 - 1 \leq A_i \leq 100 (1 \leq i \leq N)
 - All input values are integers.

-----Input-----
Input is given from Standard Input in the following format:
N
D X
A_1
A_2
:
A_N

-----Output-----
Find the number of chocolate pieces prepared at the beginning of the camp.

-----Sample Input-----
3
7 1
2
5
10

-----Sample Output-----
8

The camp has 3 participants and lasts for 7 days.
Each participant eats chocolate pieces as follows:
 - The first participant eats one chocolate piece on Day 1, 3, 5 and 7, for a total of four.
 - The second participant eats one chocolate piece on Day 1 and 6, for a total of two.
 - The third participant eats one chocolate piece only on Day 1, for a total of one.
Since the number of pieces remaining at the end of the camp is one, the number of pieces prepared at the beginning of the camp is 1 + 4 + 2 + 1 = 8.
[{"code": "n=int(input())\nd,x=map(int,input().split())\nfor i in range(n):\n  t=int(input())\n  x+=(d+t-1)//t\nprint(x)", "passed": true, "time": 0.15, "memory": 14112.0, "status": "done"}, {"code": "N = int(input())\nD,X = list(map(int,input().split()))\ncon = 0\nfor i in range(N):\n  a = int(input())\n  if a != 1:\n    for i in range(1 , D + 1):\n      if i % a == 1:\n        con += 1\n  elif a == 1:\n    con += D\nprint((X + con))\n      \n", "passed": true, "time": 0.15, "memory": 14260.0, "status": "done"}, {"code": "N=int(input())\nD,X=map(int,input().split())\nA = [int(input()) for _ in range(N)]\n\nB=[0]*N\n\nfor i in range(N):\n    if D%A[i]!=0:\n        for j in range(D//A[i]+1):\n            B[i]=1+D//A[i]\n    else:\n        B[i]=D//A[i]\nprint(sum(B)+X)", "passed": true, "time": 0.16, "memory": 14148.0, "status": "done"}, {"code": "n = int(input())\nd,x = list(map(int,input().split()))\nans = x\nl = []\nfor i in range(n):\n  l.append(int(input()))\nfor i in l:\n  ans += 1 + (d-1)//i\nprint(ans)\n  \n", "passed": true, "time": 0.17, "memory": 14044.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int,input().split())\nlst = [int(input()) for _ in range(n)]\n\nres = x\nfor i in lst:\n    res += ((d-1)//i) + 1\nprint(res)", "passed": true, "time": 0.9, "memory": 14336.0, "status": "done"}, {"code": "N = int(input())\nD, X = map(int, input().split())\nA = [int(input()) for _ in range(N)]\neat = lambda x: (D-1)//x+1\nans = sum(eat(a) for a in A) + X\nprint(ans)", "passed": true, "time": 0.15, "memory": 14348.0, "status": "done"}, {"code": "n = int(input())\nd, x = list(map(int, input().split()))\n\nchoco = []\nwhile True:\n\ttry:\n\t\tchoco.append(int(input()))\n\texcept EOFError:\n\t\tbreak\n\nchoco = [i * x + 1 for i in range(d) for x in choco if i * x + 1 <= d]\n\nprint((x + len(choco)))\n", "passed": true, "time": 0.15, "memory": 14068.0, "status": "done"}, {"code": "N=int(input())\nD,X=map(int,input().split())\nA=[int(input()) for _ in range(N)]\nfor i in range(N):\n    cnt=0\n    while A[i]*cnt+1<=D:\n        cnt+=1\n    X+=cnt\nprint(X)", "passed": true, "time": 0.16, "memory": 14308.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int, input().split())\nans = 0\nfor i in range(n):\n  a = int(input())\n  b = d//a\n  c = d%a\n  if c != 0:\n    ans += b+1\n  else:\n    ans += b\nprint(ans+x)", "passed": true, "time": 0.24, "memory": 14292.0, "status": "done"}, {"code": "n=int(input())\nd,x=list(map(int, input().split()))\nans = x\nfor i in range(n):\n    t = int(input())\n    ans += d//t\n    if d%t != 0:\n        ans += 1\nprint(ans)\n", "passed": true, "time": 0.24, "memory": 14276.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int, input().split())\na=[]\nfor i in range(n):\n    a.append(int(input()))\n\nans = 0\nfor i in a:\n    cnt = 0\n    days=1\n    while days<=d:\n        cnt+=1\n        days+=i\n    ans+=cnt\nprint(ans+x, flush=True)\n\n", "passed": true, "time": 0.15, "memory": 14348.0, "status": "done"}, {"code": "n = int(input())\nd, x = list(map(int, input().split()))\n\nres = x\nfor i in range(n):\n    a = int(input())\n    res += (d - 1) // a + 1\n\nprint(res)\n", "passed": true, "time": 0.14, "memory": 14040.0, "status": "done"}, {"code": "# -*- coding:utf-8 -*-\nN = int(input())\nD,X = map(int,input().split())\n\nA = []\nfor _ in range(N):\n    A.append(int(input()))\n\nmember = len(A)\n\nChocolate = member + X\ndays = 1\n\nwhile days<=D:\n    for single_member in A:\n        if single_member*days + 1 <= D:\n            Chocolate += 1\n    days += 1\n\nprint(Chocolate)", "passed": true, "time": 0.16, "memory": 14148.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int,input().split())\ndata = [int(input()) for i in range(n)]\nans = n\nfor i in range(n):\n    ans += (d - 1) // data[i]\nprint(ans + x)", "passed": true, "time": 0.14, "memory": 14172.0, "status": "done"}, {"code": "N = int(input())\nD, X = map(int, input().split())\n\nA = []\nfor n in range(N):\n    buff = int(input())\n    A.append(buff)\n\ndiv = 0\nfor n in range(N):\n    if A[n] == 1:\n        div += (D-1) //A[n]\n    elif D % A[n] == 0:\n        div += (D-1) //A[n]\n    else:\n        div += D //A[n]\n\ngoukei = X + div + N\n\nprint(goukei)", "passed": true, "time": 0.15, "memory": 14148.0, "status": "done"}, {"code": "N = int(input())\nD, X = list(map(int, input().split()))\nA = [0]*N\ncnt = 0\n\nfor i in range(N):\n    A[i] = int(input())\n    j = 0\n    while j*A[i]+1 <= D:\n        cnt += 1\n        j += 1\nans = cnt + X\n\nprint(ans)\n", "passed": true, "time": 0.15, "memory": 14300.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\nfor i in range(n):\n    x += (d - 1) // int(input()) + 1\nprint(x)", "passed": true, "time": 0.15, "memory": 14116.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\na = [int(input()) for _ in range(n)]\n\ntot = 0\nfor i in range(n):\n    tot += int((d-1)/a[i])+1\ntot += x\nprint(tot)", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "# ABC092\n# \u53c2\u52a0\u8005\nN = int(input())\n# D\u65e5\u9593\u306e\u5408\u5bbf\u3067X\u500b\u306e\u30c1\u30e7\u30b3\u304c\u6b8b\u3063\u305f\nD, X = list(map(int, input().split()))\n# \u53c2\u52a0\u8005i\u306f,1,Ai+1,2Ai+1..\u76ee\u306b\u30c1\u30e7\u30b3\u3092\u4e00\u3064\u98df\u3079\u308b\nA = [int(input()) for _ in range(N)]\n\neaten = 0\nfor i in range(N):\n    day = 0\n    cnt = 0\n    while True:\n        day = A[i]*cnt + 1\n        if day <= D:\n            eaten += 1\n            cnt += 1\n        else:\n            break\nprint((eaten+X))\n", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\na = [int(input()) for _ in range(n)]\n\ncnt = x\nfor q in a:\n    cnt += (d + q - 1) // q\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "N = int(input())\nD, X = map(int, input().split())\n\nfor _ in range(N):\n  A = int(input())\n  X += 1 + (D-1)//A\n\nprint(X)", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "import math\n\nN = int(input())\nD, X = list(map(int, input().split()))\n\nans = 0\nfor i in range(N):\n    A = int(input())\n    ans += math.ceil(D / A)\n\nprint((ans + X))\n", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\na = [int(input()) for i in range(n)]\nans = 0\nfor i in a:\n    ans += ((d-1)//i)\n    ans += 1\nprint(ans+x)", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "n=int(input())\nd,x=map(int,input().split())\ncnt=n\nfor i in range(n):\n    a=int(input())\n    b = a+1\n    while b <= d:\n        cnt += 1\n        b += a\nprint(cnt+x)", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "N = int(input())\n\nD, X = map(int, input().split())\n\nchoco = 0\n\nfor i in range(N):\n    A = int(input())\n    choco += 1\n    for j in range(1, 100):\n        if A*j + 1 <= D:\n            choco += 1\n        else:\n            break\n\nprint(choco+X)", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "import sys\nn=int(input())\nd,x=map(int,input().split())\na=[int(input()) for i in range(n)]\n\nc=0\n\nfor i in a:\n    p=(d-1)//i+1\n    c+=p\n\n\nprint(c+x)", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "import sys, math\nlines = [s.rstrip(\"\\n\") for s in sys.stdin.readlines()]\nn, = [int(num) for num in lines.pop(0).split(\" \")]\nd, x = [int(num) for num in lines.pop(0).split(\" \")]\na_list = [int(line) for line in lines]\nans = x\nfor a in a_list:\n    ans += math.ceil(d / a)\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "N = int(input())\nD,X = input().split()\nx = 0\nfor n in range(N):\n  An = int(input())\n  x += 1+(int(D)-1)//An\nc = x+int(X)\nprint(c)\n", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "from typing import List\n\n\ndef answer(n: int, d: int, x: int, a: List[int]) -> int:\n    eaten_chocolates = 0\n    for i in range(n):\n        eaten_chocolates += len(list(range(1, d + 1, a[i])))\n\n    return eaten_chocolates + x\n\n\ndef main():\n    n = int(input())\n    d, x = list(map(int, input().split()))\n    a = [int(input()) for _ in range(n)]\n    print((answer(n, d, x, a)))\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.15, "memory": 15320.0, "status": "done"}, {"code": "N = int(input())\nD,X = map(int,input().split())\nA = [int(input()) for _ in range(N)]\ncount=0\nfor a_i in A:\n  count+=len(range(1,D+1,a_i))\nprint(count+X)", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int,input().split())\nL = list(int(input()) for _ in range(n))\ncnt = x+n\n\nfor i in range(n):\n  tmp = (d-1)//L[i]\n  cnt += tmp\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int, input().split())\na = list(int(input()) for _ in range(n))\nans = 0\nfor i in range(n):\n    p = (a[i]+1)-1\n    ans += 1 + (d-1)//p\nprint(ans+x)", "passed": true, "time": 0.22, "memory": 14296.0, "status": "done"}, {"code": "n=int(input())\nd,x=map(int,input().split())\nres=x\nfor i in range(n):\n  a=int(input())\n  res+=(d-1)//a+1\n\nprint(res)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int, input().split())\nans = x\nfor i in range(n):\n    a = int(input())\n    ans += 1+(d-1)//a\nprint(ans)", "passed": true, "time": 0.18, "memory": 14128.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int,input().split())\nli = []\nfor i in range(n):\n    li.append(int(input()))\ncnt = 0\nfor i in li:\n    day = 1\n    while day <= d:\n        day += i\n        cnt += 1\nprint(cnt+x)", "passed": true, "time": 0.25, "memory": 14376.0, "status": "done"}, {"code": "import sys\n\nn = int(input())\nd,x = list(map(int,input().split()))\n\nfor i in range(n):\n    a = int(input())\n    for j in range(1,sys.maxsize,1):\n        x += 1\n        if a*j+1 > d:\n            break\nprint(x)\n", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "N=int(input())\nD,X=map(int,input().split())\nA=[int(input()) for i in range(N)]\n\ndef ans092(N:int, D:int, X:int, A:list):\n    ans_int=0\n    for i in range(N):\n        j_count=0\n        while True:\n            if 1+A[i]*j_count<=D:\n                ans_int+=1\n                j_count+=1\n                continue\n            else:\n                break\n    return ans_int+X\n\nprint(ans092(N,D,X,A))", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "import math\n\nn = int(input())\nd, x = map(int, input().split())\na = []\nfor i in range(n):\n    a.append(int(input()))\n\ncount = 0\nfor num in a:\n    count += math.ceil(d / num)\nprint(count + x)", "passed": true, "time": 0.17, "memory": 14144.0, "status": "done"}, {"code": "n=int(input())\nd,x=map(int,input().split())\nans=0\nfor i in range(n):\n  a=int(input())\n  if d%a==0:\n    ans+=d//a\n  else:\n    ans+=d//a+1\nprint(ans+x)", "passed": true, "time": 0.19, "memory": 14080.0, "status": "done"}, {"code": "n = int(input())\nd, x  = map(int, input().split())\na = []\n[a.append(int(input())) for i in range(n)]\ncnt = 0\nfor day in range(1, d+1):\n    for eat in a:\n         if (1+day*eat) <= d :\n             cnt += 1\nprint(cnt+n+x)", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "N = int(input())\nD, X = list(map(int, input().split()))\nA = [int(input()) for _ in range(N)]\n\nc = sum((D - 1) // a + 1 for a in A)\nprint((X + c))\n", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "N=int(input())\nD,X=list(map(int,input().split()))\nans=X\nfor _ in range(N):\n    A=int(input())\n    ans+=(D-1)//A+1\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14044.0, "status": "done"}, {"code": "n = int(input())\nd,x = list(map(int,input().split()))\n\na = [int(input()) for _ in range(n)]\n\nsum = x\n\nfor i in range(n):\n  if d%a[i] == 0:\n    sum += d//a[i]\n  else:\n    sum  += d//a[i] +1\n\nprint(sum)\n", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "N=int(input())\nD,X=map(int,input().split())\nA= [int(input()) for i in range(N)]\ncount=0\nfor i in range(N):\n    for j in range(100):\n        if (A[i]*j)+1<=D:\n            count+=1\nprint(count+X)", "passed": true, "time": 0.17, "memory": 14316.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int, input().split())\nc = 0\nfor i in range(n):\n  a = int(input())\n  c += (d-1)//a + 1\nprint(x+c)", "passed": true, "time": 0.24, "memory": 14156.0, "status": "done"}, {"code": "N = int(input())\nD, X = map(int,input().split())\nd = {}\nfor i in range(1,N+1):\n  d[i] = int(input())\n\npieces = 0\nfor day in range(1,D+1):\n  for person in range(1,N+1):\n    if (day - 1) % d[person] == 0:\n      pieces += 1\n \npieces += X\nprint(pieces)", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\na = [int(input()) for _ in range(n)]\n\nans = x\nfor i in a:\n    ans += (d-1) // i + 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "n=int(input())\nd,x=map(int,input().split())\na=[int(input()) for i in range(n)]\ncnt = x\nfor i in range(n):\n  for j in range(d):\n    if a[i]*j +1 <= d:\n      cnt += 1\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "a=int(input())\nb,c=map(int,input().split())\ns=[]\ntotal=a+c\nfor i in range(a):\n    s.append(int(input()))\nfor i in s:\n    for j in range(2,b+1):\n        if i==1:\n            total+=1\n        elif j%i==1:\n            total+=1\nprint(total)", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "N = int(input())\nD,Z = map(int,input().split())\ncnt = N\nfor i in range(N):\n    A = int(input())\n    day = 1 + A\n    while day <= D:\n        cnt += 1\n        day += A\n\nprint(cnt + Z)", "passed": true, "time": 0.15, "memory": 14120.0, "status": "done"}, {"code": "from sys import stdin\n\nn = int(stdin.readline().strip())\nd, x = [int(x) for x in stdin.readline().split()]\n\na_lst = []\nfor _ in range(n):\n  a_lst.append(int(stdin.readline().strip()))\n\nprint(sum([(d - 1) // a + 1 for a in a_lst]) + x)", "passed": true, "time": 0.23, "memory": 14168.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\na_l = [ int(input()) for _ in range(n) ]\n\nans = 0\nfor a in a_l:\n    ans += (d-1)//a + 1\nprint(ans+x)", "passed": true, "time": 0.14, "memory": 14332.0, "status": "done"}, {"code": "N = int(input())\nD, X = [int(x) for x in input().split()]\nA = [int(input()) for _ in range(N)]\nans = X\nfor i in range(N):\n  a = 1\n  l = 1\n  while a <= D:\n    ans += 1\n    a = l*A[i] + 1\n    l += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "def mapt(fn, *args):\n    return tuple(map(fn, *args))\n\n\ndef Input():\n    return mapt(int, input().split(\" \"))\n\n\ndef main():\n    n = int(input())\n    d, x = Input()\n    a = [int(input()) for _ in range(n)]\n    ans = n\n\n    for a_i in a:\n        cnt = 1\n        while True:\n            flag = cnt * a_i + 1\n            if flag > d:\n                break\n            ans += 1\n            cnt += 1\n    print(ans + x)\n\n\nmain()", "passed": true, "time": 0.14, "memory": 14136.0, "status": "done"}, {"code": "a=int(input())\nb,c=input().split()\nb=int(b)\nc=int(c)\ne=0\nd=[int(input()) for i in range(a)]\nfor i in range(a):\n  e=e+int((b-1)/d[i])+1\nprint(e+c)", "passed": true, "time": 0.14, "memory": 14332.0, "status": "done"}, {"code": "n = int(input())\nd ,x = map(int,input().split())\na = [int(input()) for i in range(n)]\ncount = 0\nfor i in a:\n    count += d // i + (0 if d % i == 0 else 1)\nprint(count+x)", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "N = int(input())\nD, X = list(map(int, input().split()))\nsum = 0\nfor i in range(N):\n    A = int(input())\n    eat = 1+(D-1)//A\n    sum += eat\nprint((X+sum))\n", "passed": true, "time": 0.15, "memory": 14084.0, "status": "done"}, {"code": "n = int(input())\nd,x = [int(t) for t in input().split()]\na = []\nfor i in range(n):\n  a.append(int(input()))\nres = 0\nfor i in range(n):\n  c = a[i]\n  res += 1\n  while c < d:\n    res += 1\n    c += a[i]\nres += x\nprint(res)", "passed": true, "time": 0.14, "memory": 14048.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\nans = 0\nfor i in range(n):\n    a = int(input())\n    cnt = 0\n    for j in range(100):\n        if j*a + 1 <= d:\n            cnt += 1\n    ans += cnt\nprint(ans + x)", "passed": true, "time": 0.15, "memory": 14272.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\nal = list(int(input()) for _ in range(n))\n\nans = x\n\nfor a in al:\n    day = 1\n    while day <= d:\n        ans += 1\n        day += a\n\nprint(ans)", "passed": true, "time": 0.15, "memory": 14328.0, "status": "done"}, {"code": "n=int(input())\nd,x=list(map(int,input().split()))\ncnt = 0\nfor i in range(n):\n    a = int(input())\n    p = 1\n    while p <= d:\n        p +=a\n        cnt +=1\nprint((cnt+x))\n", "passed": true, "time": 0.33, "memory": 14280.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\nprint(sum([(d - 1) // int(input()) + 1 for _ in range(n)]) + x)", "passed": true, "time": 0.33, "memory": 14164.0, "status": "done"}, {"code": "import sys\n\n\nstdin = sys.stdin\ndef ns(): return stdin.readline().rstrip()\ndef ni(): return int(stdin.readline().rstrip())\ndef nm(): return list(map(int, stdin.readline().split()))\ndef nl(): return list(map(int, stdin.readline().split()))\n\n\ndef main():\n    n = ni()\n    d, x = nm()\n    ans = x\n    for i in range(n):\n        a = ni()\n        ans += (d - 1) // a + 1\n    print(ans)\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14332.0, "status": "done"}, {"code": "N = int(input())\nD, X = map(int, input().split())\nA = [int(input()) for i in range(N)]\n\ncnt = 0\nfor a in A:\n    if D % a == 0:\n        cnt += D // a\n    else:\n        cnt += D // a + 1\n\nprint(X+cnt)", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\nn = int(input())\nd, x = list(map(int, input().split()))\na = [int(input()) for i in range(n)]\n\nd -= 1\nans = 0\nfor i in a:\n    ans += d//i+1\n\nprint((ans+x))\n", "passed": true, "time": 0.23, "memory": 14200.0, "status": "done"}, {"code": "N = int(input())\nD,X = map(int,input().split())\nA = [int(input()) for _ in range(N)]\ncount=0\nfor a_i in A:\n  count+=len(list(range(1,D+1,a_i)))\nprint(count+X)", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "n = int(input())\nd,x = list(map(int, input().split()))\nans = x\nfor _ in range(n):\n    a = int(input())\n    ans += (d + a - 1) // a\n\nprint(ans)", "passed": true, "time": 0.24, "memory": 14228.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int,input().split())\na = [int(input()) for i in range(n)]\nans = x\nfor i in range(n):\n  j = 0\n  while j*a[i]+1 <= d:\n    ans += 1\n    j += 1\nprint(ans)", "passed": true, "time": 0.23, "memory": 14120.0, "status": "done"}, {"code": "n=int(input())\nd,x=map(int,input().split())\na=[int(input())for _ in[0]*n]\nsm=0\nfor i in range(n):\n    j=1\n    while j<=d:\n        sm+=1\n        j=j+a[i]\nprint(sm+x)", "passed": true, "time": 0.24, "memory": 14236.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int, input().split())\na = [int(input()) for i in range(n)]\na_eat = []\nfor i in range(n):\n    y = 1\n    j = 1\n    while j+a[i] <= d:\n        y += 1\n        j += a[i]\n    a_eat.append(y)\n\nprint(sum(a_eat)+x)", "passed": true, "time": 0.15, "memory": 14228.0, "status": "done"}, {"code": "n=int(input())\nd,x=map(int,input().split())\nans=x\nfor i in range(n):\n  ans += (d-1)//int(input())+1\nprint(ans)", "passed": true, "time": 0.22, "memory": 14332.0, "status": "done"}, {"code": "N=int(input())\nkazu=input().split(' ')\nD=int(kazu[0])\nX=int(kazu[1])\ndays=[]\ncount=0\nfor i in range(N):\n  days.append(int(input()))\nfor i in range(N):\n  a=0\n  while 1:\n    b=days[i]*a+1\n    if b>D:\n      break\n    count=count+1\n    a=a+1\nprint(count+X)", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "from sys import stdin\ndef input():\n    return stdin.readline().strip()\n\nn = int(input())\nd, x = map(int, input().split())\nfor _ in range(n):\n    a = int(input())\n    x += (d - 1) // a + 1\n\nprint(x)", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "N=int(input())\nans=0\nD,X=list(map(int,input().split()))\nD-=1\n\nfor i in range(N):\n    ans+=D//int(input())+1\nprint((ans+X))\n", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "N = int(input())\nlst = input().split()\nD = int(lst[0])\n\nA = []\nfor i in range(N):\n   A.append(int(input()))\n\ncount = int(lst[1])\n\nfor Ai in A:\n   s = 1\n   while s <= D:\n      count += 1\n      s += Ai\n\nprint(count)", "passed": true, "time": 0.14, "memory": 14364.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\n\nfor i in range(n):\n    a = int(input())\n    b = 1\n    while b <= d:\n        x += 1\n        b += a\nprint(x)", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "N = int(input())\nD, X = map(int, input().split())\nmass = 0\n\nfor n in range(N):\n  A = int(input())\n  i = 0\n  day = 1\n  while day <= D:\n    day = i*A + 1\n    i += 1\n\n  mass += (i-1)\n\n\nresult = mass + X\nprint(result)", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "N = int(input())\nD, X = list(map(int, input().split()))\nans = 0\nfor i in range(1, N+1):\n    a = int(input())\n    c = []\n    for d in range(D):\n        if d*a+1 > D:\n            break\n        c.append(d*a+1)\n    ans += len(c)\n\nprint((ans+X))\n", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "N = int(input())\nD, X = map(int, input().split())\nans = X\nfor i in range(N):\n  A = int(input())\n  ans += (D-1)//A + 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\nA = [int(input()) for _ in range(n)]\n\ncnt = 0\nfor a in A:\n    for i in range(d):\n        tmp = i * a + 1\n        if tmp  > d:\n            break\n        cnt += 1\nprint(cnt+x)", "passed": true, "time": 0.22, "memory": 14048.0, "status": "done"}, {"code": "N = int(input())\nD, X = list(map(int, input().split()))\nA=[]\nfor i in range(N):\n  A.append(int(input()))\n  \ntotal=0\nfor i in range(N):\n  d = (D-1) // A[i]+1\n  total+=d\n  \nprint((total+X))\n", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "def resolve():\n    n = int(input())\n    d, x = map(int, input().split())\n    al = list()\n    ans = 0\n    for i in range(n):\n        a = int(input())\n        al.append(a)\n    cl = list()\n    for i in range(n):\n        counter = 1\n        day = 1\n        while day + al[i] <= d:\n            counter += 1\n            day += al[i]\n        cl.append(counter)\n    ans = 0\n    for i in cl:\n        ans += i\n    ans += x\n    print(ans)\nresolve()", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int, input().split())\nc = 0\nfor i in range(n):\n    a = int(input())\n    for j in range(100):\n        if a*j+1<=d:\n            c+=1\n        else:\n            break\nprint(x+c)", "passed": true, "time": 0.21, "memory": 14052.0, "status": "done"}, {"code": "N = int(input())\nD,X = map(int,input().split())\nA = [int(input()) for _ in range(N)]\n\ncnt = 0\nfor i in range(N):\n  day = 1\n  while day <= D:\n    cnt += 1\n    day += A[i]\n    \nprint(cnt + X)", "passed": true, "time": 0.22, "memory": 14208.0, "status": "done"}, {"code": "n = int(input())\nd, x = (int(i) for i in input().split())\nlist_a = [int(input()) for i in range(0, n)]\nans = x\nfor i in list_a:\n    for j in range(1, d + 1):\n        if i == 1:\n            ans += d\n            break\n        elif j % i == 1: ans += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "#-*-coding:utf-8-*-\nimport sys\ninput=sys.stdin.readline\n\ndef main():\n    n = int(input())\n    people=[]\n    d,x = map(int,input().split())\n    people=list([int(input()) for _ in range(n)])\n    chocolates=[]\n    choco=1\n\n    for human in people:\n        for day in range(1,d+1):\n            if d >= human * day +1:\n                choco+=1\n        chocolates.append(choco)\n        choco=1\n    print(sum(chocolates)+x)\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.24, "memory": 14196.0, "status": "done"}, {"code": "n = int(input())\nd, x = map(int, input().split())\na = [int(input()) for _ in range(n)]\nc = 0\nfor i in range(n):\n  c += (d - 1) // a[i] + 1\nprint(x + c)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "import sys\nfrom collections import deque\n#import numpy as np\nimport math\n#sys.setrecursionlimit(10**6)\ndef S(): return sys.stdin.readline().rstrip()\ndef SL(): return map(str,sys.stdin.readline().rstrip().split())\ndef I(): return int(sys.stdin.readline().rstrip())\ndef IL(): return map(int,sys.stdin.readline().rstrip().split())\n\ndef solve():\n    return\n\ndef __starting_point():\n    n = I()\n    d,x = IL()\n    days = 0\n    for _ in range(n):\n        a = I()\n        tmp = 1\n        count = 1\n        while tmp<=d:\n            days += 1\n            tmp = count*a + 1\n            count += 1\n    ans = days + x\n    print(ans)\n    solve()\n__starting_point()", "passed": true, "time": 0.24, "memory": 14152.0, "status": "done"}, {"code": "n = int(input())\nd, x = list(map(int, input().split()))\nans = x\nfor i in range(n):\n    a = int(input())\n    if d - 1 > 0:\n        ans += int((d - 1) / a) + 1\n    else:\n        ans += 1\n\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "N = int(input())\nD, X = map(int, input().split())\ncount = X\nfor _ in range(N):\n    A = int(input())\n    count += (D-1) // A + 1\nprint(count)", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "n = int(input())\nd, x = list(map(int, input().split()))\narr = []\nans = 0\nans += x\n\nfor _ in range(n):\n    day_sum = 1\n    keisu = 1\n    num = int(input())\n\n    while day_sum <= d:\n        ans += 1\n        keisu += 1\n        day_sum += num\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "def LI():\n    return list(map(int, input().split()))\n\n\nN = int(input())\nD, X = LI()\nans = X\nfor _ in range(N):\n    A = int(input())\n    for i in range(100):\n        if A*i+1 <= D:\n            ans += 1\n            continue\n        break\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14388.0, "status": "done"}, {"code": "n = int(input())\nd,x = map(int, input().split())\nfor i in range(n):\n  x += ((d-1)//int(input()) + 1)\nprint(x)", "passed": true, "time": 0.14, "memory": 14352.0, "status": "done"}, {"code": "n=int(input())\nd,x=map(int,input().split())\na=[int(input()) for _ in range(n)]\nans=x\nfor i in range(n):\n    ans+=((d+a[i]-1)//a[i])\nprint(ans)", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "N = int(input())\nD, X = map(int, input().split())\nA = []\nday = 1\n\nfor i in range(N):\n    a = int(input())\n    X += 1\n    while True:\n        day += a\n        if day > D:\n            break\n        else:\n            X += 1\n    \n    day = 1\n\nprint(X)", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "import sys\nimport copy\nN=int(input())\na=[int(c) for c in input().split()]\nD=a[0]\nX=a[1]\na = [int(input()) for i in range(N)]\n\nchoco = 0\nfor i in range(N):\n    cnt=0\n    while cnt*a[i]+1<=D:\n        choco+=1\n        cnt+=1\n\nprint((choco+X))\n", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}]