#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  vector<long long> x;
  string s2 = "0";
  s.append(s2);
  long long n = s.size();
  for (long long i = 0; i < n - 1; i++) {
    if (s[i] == '-' && s[i + 1] == '.') {
      x.push_back(1);
      i++;
    } else if (s[i] == '-' && s[i + 1] == '-') {
      x.push_back(2);
      i++;
    } else {
      x.push_back(0);
    }
  }
  for (long long i = 0; i < x.size(); i++) {
    cout << x[i];
  }
  cout << "\n";
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
  return 0;
}
