#include <bits/stdc++.h>
int main() {
  char c;
  c = getchar();
  while (c != '\n') {
    if (c == '.') printf("0");
    if (c == '-') {
      c = getchar();
      if (c == '.')
        printf("1");
      else
        printf("2");
    }
    c = getchar();
  }
  return 0;
}
