#include<stdio.h>
int min()
{
 int n;
 scanf("%d",&n);
 for(int width=1;width<=6;width++)
 {
     printf("%0*d\n",width,n);
 }
}