#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 233;
int n, m;
int a[maxn];
int main() {
  cin >> n;
  string s;
  cin >> s;
  int cnt = 0;
  for (char ch : s)
    if (ch == '.') cnt++;
  if (cnt == n)
    cout << 0 << endl;
  else
    cout << cnt << endl;
  return 0;
}
