func_code_string: #include <bits/stdc++.h>   using namespace std;   long long n, m;   string s;   long long q;   char ch;   long long k = 0;   int main() {     ios::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     cin >> n >> m >> s;     for (long long i = 0; i < n - 1; i++)       if (s[i] ==  .  && s[i + 1] ==  . ) k++;     for (long long i = 0; i < m; i++) {       cin >> q >> ch;       q--;       if ((q > 0 && s[q - 1] ==  . ) || (q < n - 1 && s[q + 1] ==  . )) {         if (ch ==  . ) {           if (s[q] !=  . ) {             if ((q > 0 && s[q - 1] ==  . ) && (q < n - 1 && s[q + 1] ==  . ))               k += 2;             else               k++;           }         } else {           if (s[q] ==  . ) {             if ((q > 0 && s[q - 1] ==  . ) && (q < n - 1 && s[q + 1] ==  . ))               k -= 2;             else               k--;           }         }       }       s[q] = ch;       if (i > 0) cout <<   n ;       cout << k;     }   }   