#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  string s;
  cin >> n >> s ;
int i;
int black=1;
int white=0;
int flag=0;
for (i=0;i<n;i++)
  {if (flag ==0)
    { if (s[i]=='#'&&s[i+1]=='#')flag =1;}
  else
    {if (s[i] == '.')white++;
    {if (s[i] == '#')black++;}
  }