#include <bits/stdc++.h>
using namespace std;
long long n, t, a[200005], ans, mini = 1e18;
void get(long long t, long long &pr, long long &cnt) {
  for (long long i = 0; i < n; ++i) {
    if (t >= a[i]) {
      t -= a[i];
      pr += a[i];
      ++cnt;
    }
  }
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin >> n >> t;
  for (long long i = 0; i < n; ++i) cin >> a[i], mini = min(mini, a[i]);
  while (t >= mini) {
    long long pr = 0, cnt = 0;
    get(t, pr, cnt);
    if (pr > t) break;
    ans += cnt * (t / pr);
    t %= pr;
  }
  cout << ans << "\n";
  return 0;
}
