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
# Lang: pypy3.6-v7.1.0-win32\pypy3.exe
# Problem Name: Broze
# Problem Serial No: 32
# Problem Type: A
# Problem Url: https://codeforces.com/problemset/problem/32/B 
# Solution Generated at: 2019-10-19 17:32:56.870910 UTC

i = int
cin = input
le = len

m = input()
t = len(m)
counter = 0
fin = ""
while counter <= t-1:
    if m[counter] == ".":
        fin += '0'
        counter += 1
    elif m[counter] == "-" and m[counter + 1] == ".":
        fin += '1'
        counter += 2
    elif m[counter] == "-" and m[counter + 1] == "-":
        fin += '2'
        counter += 2

print(fin)



# Accepted