#include <bits/stdc++.h>
using namespace std;
int power(int a, int b) {
  if (b == 0) return 1;
  int ret = a;
  for (int i = 1; i < b; i++) {
    ret *= a;
  }
  return ret;
}
int main() {
  string s;
  cin >> s;
  vector<char> s1;
  int c = 0;
  for (int i = 0; i < s.size();) {
    if (s[i] == '-' && s[i + 1] == '-') {
      s1.push_back('2');
      i += 2;
    }
    if (s[i] == '-' && s[i + 1] == '.') {
      s1.push_back('1');
      i += 2;
    }
    if (s[i] == '.') {
      s1.push_back('0');
      i += 1;
    }
    c++;
  }
  for (int i = 0; i < s1.size(); i++) cout << s1[i];
  cout << endl;
}
