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