#include <bits/stdc++.h>
using namespace std;
int main() {
  int ans = 0;
  string s, k;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '-' && s[i + 1] == '.') {
      k += 49;
      i++;
    } else if (s[i] == '-' && s[i + 1] == '-') {
      k += 50;
      i++;
    } else
      k += 48;
  }
  cout << k;
}
