public static void main(String args[]) throws Exception{
		int fis=0,sec=0;
		Map numMap=new LinkedHashMap();
		int cycleLength=0;
		if(args.length==2){
			fis=Integer.parseInt(args[0]);
			sec=Integer.parseInt(args[1]);
		}else{
			throw new Exception ("Inputs are not correct");
		}
		
		for (int count=fis;count<=sec;count++){
			 cycleLength=findCycleLength(count);
			numMap.put(new Integer(count),new Integer(cycleLength));
			System.out.println( numMap.get(new Integer(count)));
		}
		
		numMap=sortByValue(numMap);
		

		
		System.out.println(fis+" "+sec+" "+numMap.get(new Integer(sec)));
			
	}