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