#include <bits/stdc++.h>
using namespace std;
int main() {
  string c;
  cin >> c;
  int n = c.length();
  vector<int> a;
  for (int i = 0; i < n; i++) {
    if (c[i] == '.')
      a.push_back(0);
    else if (c[i] == '-') {
      if (c[i + 1] == '.') {
        a.push_back(1);
        i++;
      } else if (c[i + 1] == '-') {
        a.push_back(2);
        i++;
      }
    }
  }
  for (int j = 0; j < a.size(); j++) {
    cout << a[j];
  }
  return 0;
}
