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