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
/*
 Author: Togrul Gasimov
 Mail: ttogrul30@gmail.com 
 */


import java.util.Collection;
import java.util.Comparator;
import java.util.Locale;
import java.util.Scanner;
import java.util.Vector;
import java.util.Arrays;
import java.math.BigInteger;
import java.math.BigDecimal;
import java.util.List;
import java.util.Stack;

import javax.print.attribute.IntegerSyntax;



public class Main {

 
	
static double u(double x1,double y1,double x2,double y2){
return Math.sqrt( (x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)  ); 
} 
static int gcd(int a,int b){
	if(b==0)return a;
	else return gcd(b,a%b);
}



static Scanner scan = new Scanner(System.in);
//variables begin
//static double PI=3.1415926535897932384626433832795,E=1e-9;
static String s;
//variables end
static void read(){
  s=scan.next();
  
}
static void solve(){
	int l=s.length();
	s=s+".";
	for(int i=0;i<=l-1;i++){
		if(s.charAt(i)=='-' && s.charAt(i+1)=='-'){
			i++;
			System.out.print(2);
		}else if(s.charAt(i)=='-' && s.charAt(i+1)=='.'){
			i++;
			System.out.print(1);
		}else{
			System.out.print(0);
		}
		
	}
	
	
	System.out.println();
}

 
public static void main(String[] args) {

 
  read();
  solve();

}
}