#include <bits/stdc++.h>
using namespace std;
int main() {
  char str[200];
  cin >> str;
  for (int i = 0; str[i] != '\0'; i++) {
    if (str[i] == '.') {
      cout << "0";
    }
    if (str[i] == '-' && str[i + 1] == '.') {
      cout << "1";
      i++;
    }
    if (str[i] == '-' && str[i + 1] == '-' && i < 200) {
      cout << "2";
      i = i + 1;
    }
  }
  return 0;
}
