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