#include #define N 300000 int main(void){ char S[N]; int n,counter = 0; scanf("%d",&n); scanf("%s",&S); loop: if(S[n-1] == '#') S[n-1] = '.'; for(int i=0;i