#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int num, i, j, sortt, cart, tt;
  string s;
  cin >> s;
  i = 0;
  while (i < s.size()) {
    if (s[i] == '.') {
      cout << "0";
      i++;
    } else {
      if (s[i + 1] == '-') {
        cout << "2";
        i += 2;
      } else {
        cout << "1";
        i += 2;
      }
    }
  }
  return 0;
}
