#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, t;
  cin >> n >> t;
  vector<long long> V;
  for (int i = 0; i < n; i++) {
    long long a;
    cin >> a;
    if (a <= t) V.push_back(a);
  }
  long long ans = 0;
  while (true) {
    if (V.size() == 0) break;
    long long s = 0;
    for (int i = 0; i < V.size(); i++) s += V[i];
    ans += (t / s) * V.size();
    t -= (t / s) * s;
    for (int i = 0; i < V.size(); i++) {
      if (V[i] <= t) {
        t -= V[i];
        ans++;
      }
    }
    vector<long long> v;
    for (int i = 0; i < V.size(); i++) {
      if (V[i] <= t) v.push_back(V[i]);
    }
    V.clear();
    for (int i = 0; i < v.size(); i++) V.push_back(v[i]);
  }
  cout << ans;
}
