#include <bits/stdc++.h>
template <typename T>
inline void read(T &x) {
  char c;
  bool nega = 0;
  while ((!isdigit(c = getchar())) && (c != '-'))
    ;
  if (c == '-') {
    nega = 1;
    c = getchar();
  }
  x = c - 48;
  while (isdigit(c = getchar())) x = x * 10 + c - 48;
  if (nega) x = -x;
}
template <typename T>
inline void writep(T x) {
  if (x > 9) writep(x / 10);
  putchar(x % 10 + 48);
}
template <typename T>
inline void write(T x) {
  if (x < 0) {
    putchar('-');
    x = -x;
  }
  writep(x);
  putchar(' ');
}
template <typename T>
inline void writeln(T x) {
  write(x);
  putchar('\n');
}
using namespace std;
int n, nxt[2][1000006];
char a[1000006];
vector<int> save[2][1000006];
int main() {
  srand(time(NULL));
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie();
  if (fopen(".inp", "r")) freopen(".inp", "r", stdin);
  cin >> n;
  for (int i = (1); i <= (n); ++i) {
    cin >> a[i];
  }
  for (int i = (n); i >= (1); --i) {
    if (a[i] != '1') nxt[0][i] = nxt[0][i + 1] + 1;
    if (a[i] != '0') nxt[1][i] = nxt[1][i + 1] + 1;
  }
  for (int b = (0); b <= (1); ++b) {
    int l = 1;
    while (l <= n) {
      if (a[l] == (char)('0' + b)) {
        ++l;
        continue;
      }
      int r = l + 1;
      while (r <= n && a[r] != (char)('0' + b)) ++r;
      for (int len = (1); len <= (r - l); ++len) {
        save[b][len].push_back(l);
      }
      l = r;
    }
  }
  for (int len = (1); len <= (n); ++len) {
    int ans = 0, cur = 1;
    int pt[2];
    pt[0] = pt[1] = 0;
    while (cur <= n) {
      int nx = 1000000007;
      for (int b = (0); b <= (1); ++b) {
        if (nxt[b][cur] >= len) {
          nx = min(nx, cur + len);
        }
        while (pt[b] < save[b][len].size() && cur > save[b][len][pt[b]])
          ++pt[b];
        if (pt[b] < save[b][len].size()) {
          nx = min(nx, save[b][len][pt[b]] + len);
        }
      }
      if (nx != 1000000007) ++ans;
      cur = nx;
    }
    cout << ans << ' ';
  }
  return 0;
}
