#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, t;
  cin >> n >> t;
  long long int a[n];
  long long int ans = 0, count = 0;
  vector<long long int> v;
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
    if (ans + a[i] > t) {
      continue;
    }
    ans += a[i];
    v.push_back(a[i]);
  }
  long long int ru = 0, com = 0;
  while (true) {
    vector<long long int> vv;
    for (long long int it = 0; it < v.size(); it++) {
      if (ru + v[it] > t) continue;
      com++;
      ru += v[it];
      vv.push_back(v[it]);
    }
    if (com == 0) break;
    count += (vv.size() * (t / ru));
    com = 0;
    v = vv;
    t %= ru;
    ru = 0;
  }
  cout << count << endl;
}
