func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 100100;   int main() {     string s, ans;     cin >> s;     for (int i = 0; i < s.length(); i++) {       if (s[i] ==  . ) ans +=  0 ;       if (s[i] ==  - ) {         i++;         if (s[i] ==  . )           ans +=  1 ;         else           ans +=  2 ;       }     }     cout << ans;   }   