#include <bits/stdc++.h>
int main() {
  int i, j;
  int N;
  scanf("%d", &N);
  int cnt[N + 1];
  for (i = 0; i < N + 1; i++) cnt[i] = 0;
  int cnt_all = 200000;
  char S[N + 1];
  scanf("%s", S);
  for (i = 0; i < N + 1; i++) {
    for (j = 0; j < N; j++) {
      if (j >= i && S[j] == '.') cnt[i]++;
      if (j < i && S[j] == '#') cnt[i]++;
    }
  }
  for (i = 0; i < N + 1; i++) {
    printf("%d\n", cnt[i]);
    if (cnt[i] < cnt_all) cnt_all = cnt[i];
  }
  printf("\n%d", cnt_all);
  return 0;
}
