private static int[] decBaseDix(int n){
		int[] res = new int[((int)Math.log10((double)n))+1];
		int val=n;
		for(int i=0;i<res.length;i++){
			res[i]= (int) (val/Math.pow(10.0,((int)Math.log10((double)val))));
			val=val-(res[i]*(int)Math.pow(10.0,((int)Math.log10((double)val))));
		}
		return res;
	}