#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[10000];
  gets(a);
  int n = strlen(a);
  for (int i = 0; i < n; i++) {
    if (a[i] == '.') cout << "0";
    if (a[i] == '-' && a[i + 1] == '.') {
      cout << "1";
      i++;
    }
    if (a[i] == '-' && a[i + 1] == '-') {
      cout << "2";
      i++;
    }
  }
  return 0;
}
