class G{static void Main(){int i=2,j,c,t=1000,e=856,a;int[]y=new int[e];y[0]=1;for(;i<=t;i++)for(j=c=0;j0;)System.Console.Write("{0:D3}",y[--e]);}}