public class counter {
	static public void main (String [] s) {
	
		int n = Integer.parseInt (s[0]);
	
		System.out.print ("Counting ");
		System.out.print (n);
		System.out.println (" times from 0 to 9999..."); 
		
		int i,j;
		for (j=0; j<n; j++) 
			for (i=0; i<10000; i++) {
				}
			
		System.out.println ("... done");
		}
	
	}
	
	