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