#include <bits/stdc++.h>   const int mxn = 100000 + 10;   using namespace std;   string s;   string soln;   int main() {     cin >> s;     int n = s.size();     for (int i = 0; i < n; i++)       if (s[i] ==  . )         printf( 0 );       else {         if (s[i + 1] ==  - )           printf( 2 );         else           printf( 1 );         i++;       }     puts(  );   }   