CF
#include<bits/stdc++.h>//万能头
using namespace std;
string s;
int main(){
cin>>s;
for(int i=0;i<s.size();i++){
if(s[i]=='.')
cout<<"0";
else if(s[i]=='-'&&s[i+1]=='.')
cout<<"1",s[i+1]=' ';
else if(s[i]=='-'&&s[i+1]=='-')
cout<<"2",s[i+1]=' ';/
}
return 0;
}