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