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