package recycledNumbers;


public class OutputData {

	private int[] Steps;


	public int[] getSteps() {
		return Steps;
	}


	public OutputData(int [] Steps){
		this.Steps = Steps;
		
		for(int i=0;i<this.Steps.length;i++){
			System.out.println("Test "+(i+1)+": "+Steps[i]);
		}
	}
	
}

package qualificationRound;

public class Recycled {

	public static int howMany(int A, int B){
		
		int count = 0;
		
		for (int i = A; i < B; i++){
			
			for (int j = i + 1; j <= B; j++){
		
				String I = String.valueOf(i);
				String J = String.valueOf(j);
				
				String AA = I + I; 
				
				if (AA.contains(J))
					count++;
			}
		}
		
		return count;
	}
}
