#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  string s;
  cin >> s;
  string number;
  for (int i = 0; i < s.length(); i++) {
    if (i != s.length() - 1) {
      if (s[i] == '.')
        number += '0';
      else if (s[i] == '-' && s[i + 1] == '.')
        number += '1', i++;
      else if (s[i] == '-' && s[i + 1] == '-')
        number += '2', i++;
      else
        1;
    } else
      number += '0';
  }
  cout << number << endl;
  return 0;
}
