func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, q;     scanf( %d %d , &n, &q);     string s;     cin >> s;     int size = s.size();     int cnt = 0;     for (int i = 1; i < size; i++) {       if (s[i] ==  .  && s[i] == s[i - 1]) cnt++;     }     while (q--) {       int n1;       char x;       scanf( %d %c , &n1, &x);       n1--;       if (isalpha(x) == isalpha(s[n1]))         ;       else if (x ==  .  && s[n1] !=  . ) {         if (n1 < n - 1)           if (s[n1 + 1] ==  . ) cnt++;         if (n1 > 0)           if (s[n1 - 1] ==  . ) cnt++;       } else {         if (n1 < n - 1)           if (s[n1 + 1] ==  . ) cnt--;         if (n1 > 0)           if (s[n1 - 1] ==  . ) cnt--;       }       s[n1] = x;       printf( %d n , cnt);     }     return 0;   }   