#include <bits/stdc++.h>
using namespace std;
int main() {
  string cadena;
  cin >> cadena;
  while (cadena.length() > 0) {
    if (cadena[0] == '.') {
      cadena = cadena.substr(1, cadena.length() - 1);
      cout << '0';
    }
    if (cadena.substr(0, 2) == "-.") {
      cadena = cadena.substr(2, cadena.length() - 1);
      cout << '1';
    }
    if (cadena.substr(0, 2) == "--") {
      cadena = cadena.substr(2, cadena.length() - 1);
      cout << '2';
    }
  }
  return 0;
}
