#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main()
{
    char s[20];
    scanf("%s",s);
    if(isdigit(s))
    {
        printf("Invalid input");
    }
    else
    {
      int f=strlen(s);
      for(int i=-1;i<s;i++)
      {
         printf("%d",f);
      }
        
    }
}