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