public static double[] get1(int[] arr , double total ){
		double ttotal = 0.0 ; 
		for(int i : arr){
			ttotal += i; 
		}
		double min_thread = ( ttotal + total ) / arr.length ; 
		System.out.println(Arrays.toString(arr)) ; 
		System.out.println(min_thread) ; 
		
		int length = 0 ;
		
		for( int r : arr){
			if( r < min_thread ){
				length ++ ;
			}
		}

		double[] result = new double[arr.length] ; 

		if( length == arr.length){
			for( int i = 0 ; i < arr.length ; i++){
				result[i] = ((double)( min_thread- arr[i] )) * 100 / total ;
		}			
		}else{
			int[] tarr = new int[length];
			int ti = 0 ; 
			for(int i =0 ; i < arr.length ; i++){
				if( arr[i] < min_thread ){
					tarr[ti++] = arr[i] ; 
				}
			}
			double[] tresult = get1(tarr, total );

			ti = 0 ; 
			for(int i =0 ; i < arr.length ; i++){
				if( arr[i] < min_thread ){
					result[i] = tresult[ti++]  ; 
				}else{
					result[i] = 0.0 ;
				}
			}
			
		}
		return result ; 
	}