#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  cin >> n >> s;
  int count = 0;
  bool allwhite = 1;
  for (int i = 0; i < n; i++) {
    if (s[i] != '.') {
      allwhite = 0;
    }
  }
  if (allwhite) {
    cout << 0;
    return 0;
  } else {
    for (int i = 0; i < n; i++) {
      if (s[i] != '#') {
        count++;
      }
    }
  }
  cout << count;
  return 0;
}
