output_description: Find the number of chocolate pieces prepared at the beginning of the camp.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
      D X
      A_1
      A_2
      :
      A_N
attempt: # -*- coding: utf-8 -*-
  
  # 人数
  psn_cnt = int(input())
  
  # 日数と最終日の余り
  date_amari = input()
  # 分割
  da_list = date_amari.split()
  date = int(da_list[0])
  amari = int(da_list[1])
  
  # 人数分の入力値を取得
  psn_list = []
  for i in range(psn_cnt):
      psn_list.append(int(input()))
  
  choco_cnt_list = []
  # 人数分のループ
  for i in range(psn_cnt):
      # チョコ数の初期化
      choco_cnt = 0
      # 日数+1のループ
      for j in range(date + 1):
          # 条件に当てはまる数値が日数を超えていなければその人のチョコを+1
          if date >= psn_list[i] * j + 1:
              # 			print(str(i) + "add")
              choco_cnt += 1
          # 条件に当てはまる数値が日数を超えたところでその人のチョコ数をリストに詰めて次の人へ
          else:
              choco_cnt_list.append(choco_cnt)
              # 			print(str(i) + "added" + str(choco_cnt))
              break
  # 全員のチョコ数を合計して余りも足す
  choco_sum = 0
  for choco_cnt in choco_cnt_list:
      choco_sum += choco_cnt
  choco_sum += amari
  
  print(choco_sum)
  
problem_description: Statement
  
  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.
samples: [{"input": "3\n    7 1\n    2\n    5\n    10", "output": "8\n    \n\nThe camp has 3 participants and lasts for 7 days. Each participant eats\nchocolate pieces as follows:\n\n  * The first participant eats one chocolate piece on Day 1, 3, 5 and 7, for a total of four.\n  * The second participant eats one chocolate piece on Day 1 and 6, for a total of two.\n  * The third participant eats one chocolate piece only on Day 1, for a total of one.\n\nSince the number of pieces remaining at the end of the camp is one, the number\nof pieces prepared at the beginning of the camp is 1 + 4 + 2 + 1 = 8.\n\n* * *"}, {"input": "2\n    8 20\n    1\n    10", "output": "29\n    \n\n* * *"}, {"input": "5\n    30 44\n    26\n    18\n    81\n    18\n    6", "output": "56"}]