#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  string S;
  cin >> N;
  cin >> S;
  int sum = 0;
  for (int i = 0; i < N; i++) {
    if (S[i] == '.') sum++;
  }
  if (sum == N) {
    sum = 0;
  }
  cout << sum << endl;
}
