#include <stdio.h>
// #include <string.h>

// void f(char *s, char *t)
// {
//   char buf[11];
//   int i, len = strlen(s);
//   for (i = 0; i < len; i++) {
//     strcpy(buf, t);
//     strcpy(buf, s + i);
//     puts(buf);
//   }
//   for (i = 10 - 1; i >= 0; i--) {
//     strcpy(buf, t);
//     if (10 - i > len)strcpy(buf + i, s);
//     else memcpy(buf + i, s, 10 - i);
//     puts(buf);
//   }
// }

void f(char *s)
{
  int i, len = 0;
  char buf[21];
  while (s[len])++len;
  for (i = 0; i <= len; ++i) {
    sprintf(buf, "%s%.*s", s + i, i, s);
    printf("%.11s\n", buf);
  }
}

int main()
{
  char s[] = "Hello";
  char t[11] = "**********";
  char buf[21];
  sprintf(buf, "%s%s", s, t);
  f(buf);
  return 0;
}