#include <bits/stdc++.h>
using namespace std;
void swap(int *a, int *b) {
  int temp = *a;
  *a = *b;
  *b = temp;
}
int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int fact(int n) {
  if (n == 1) return 1;
  return n * fact(n - 1);
}
void reverse(int arr[], int n) {
  int i = 0, j = n - 1;
  while (i < j) {
    int temp = arr[i];
    arr[i] = arr[j];
    arr[j] = temp;
    i++;
    j--;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    string s;
    cin >> s;
    for (int i = 0; i < s.size(); i++) {
      if (s[i] == '.') {
        cout << 0;
        continue;
      }
      if (s[i] == '-' && s[i + 1] == '.') {
        cout << 1;
        i++;
        continue;
      }
      if (s[i] == '-' && s[i + 1] == '-') {
        cout << 2;
        i++;
      }
    }
  }
  return 0;
}

### Prompt

Develop a solution in Cpp to the problem described below:

Ternary numeric notation is quite popular in Berland. To telegraph the ternary number the Borze alphabet is used. Digit 0 is transmitted as «.», 1 as «-.» and 2 as «--». You are to decode the Borze code, i.e. to find out the ternary number given its representation in Borze alphabet.

Input

The first line contains a number in Borze code. The length of the string is between 1 and 200 characters. It's guaranteed that the given string is a valid Borze code of some ternary number (this number can have leading zeroes).

Output

Output the decoded ternary number. It can have leading zeroes.

Examples

Input

.-.--


Output

012

Input

--.


Output

20

Input

-..-.--


Output

1012

### Response

```cpp
#include <bits/stdc++.h>
using namespace std;
void swap(int *a, int *b) {
  int temp = *a;
  *a = *b;
  *b = temp;
}
int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int fact(int n) {
  if (n == 1) return 1;
  return n * fact(n - 1);
}
void reverse(int arr[], int n) {
  int i = 0, j = n - 1;
  while (i < j) {
    int temp = arr[i];
    arr[i] = arr[j];
    arr[j] = temp;
    i++;
    j--;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    string s;
    cin >> s;
    for (int i = 0; i < s.size(); i++) {
      if (s[i] == '.') {
        cout << 0;
        continue;
      }
      if (s[i] == '-' && s[i + 1] == '.') {
        cout << 1;
        i++;
        continue;
      }
      if (s[i] == '-' && s[i + 1] == '-') {
        cout << 2;
        i++;
      }
    }
  }
  return 0;
}

```