#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  string S;
  int count;
  cin >> N;
  cin >> S;
  count = 0;
  for (int i = 0; i < N; i++) {
    if (S.at(i) == '#') {
      if (S.at(i + 1) == '.') {
        S.at(i + 1) = '#';
        count = count + 1;
      }
    }
  }
}
