public static void main(String[] args){
		//System.out.println(new SquareDigits().S(0));
		//System.out.println(new SquareDigits().T(7).keySet());
		for(int i=0;i<200;i++){
			System.out.println(new SquareDigits().smallestResult(i));
		}
		
	}