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