public static void main(String[] args){
		int max = 0;
		int maxI = 0;
		for(int i=2;i<1000;i++){
			int n = length(i);
			System.out.println(i + " has recurring length " + n);
			if (n>max){ maxI = i; max = n;}
		}
		System.out.println(maxI);
	}