#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, t;
  char a[300], b[300];
  scanf("%s", a);
  t = strlen(a);
  j = 0;
  for (i = 0; i < t; i++) {
    if (a[i] == '-' && a[i + 1] == '-')
      b[j++] = '2', i++;
    else if (a[i] == '-' && a[i + 1] == '.')
      b[j++] = '1', i++;
    else if (a[i] == '.')
      b[j++] = '0';
  }
  b[j] = '\0';
  printf("%s\n", b);
  return 0;
}
