#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  for (int i = 0; i < s.size();) {
    if (s[i] == '.') {
      cout << "0";
      i++;
      continue;
    } else if (s[i] == '-' && s[i + 1] == '.') {
      cout << "1";
      i += 2;
      continue;
    } else if (s[i] == '-' && s[i + 1] == '-') {
      cout << "2";
      i += 2;
      continue;
    }
  }
  return;
}
void fun() {
  long long int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
  return 0;
}
