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
import sys
input = sys.stdin.readline

############ ---- Input Functions ---- ############
#  — For taking integer inputs.
def inp():
    return(int(input()))
    # — For taking List inputs.
def inlt():
    return(list(map(int,input().split())))
    #  For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable.
def insr():
    s = input()
    return(list(s[:len(s) - 1]))
    # — For taking space seperated integer variable inputs.
def invr():
    return(map(int,input().split()))
# --------------------------------------------------
borzeList = insr()
i = 0
returnString = ""
while i < len(borzeList):
    if borzeList[i] == ".":
        returnString += "0"
        i+=1
    elif borzeList[i] == "-":
        if borzeList[i+1] == "-":
            returnString += "2"
        elif borzeList[i+1] == ".":
            returnString += "1"
        i += 2
print(returnString)

