#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long int n, t;
  cin >> n >> t;
  long long int a[n];
  long long int mn = LLONG_MAX;
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
    mn = min(mn, a[i]);
  }
  long long int ans = 0;
  while (t >= mn) {
    long long int cost = 0;
    long long int hold = t;
    long long int cnt = 0;
    for (long long int i = 0; i < n; i++) {
      if (a[i] <= t) {
        t -= a[i];
        cost += a[i];
        cnt += 1;
      }
    }
    ans += cnt * (hold / cost);
    t = hold % cost;
  }
  cout << ans << endl;
  return 0;
}
