#include <stdlib.h>
#include <stdio.h>
 
int main()
{
        static char *buf,*p;
       
        p = (char*)malloc(20*sizeof(char));
       
        buf = p;
 
        scanf("%s",buf);
 
        while(buf[0] != '\0')
                printf("\n%s\n",buf++);
       
        free(p);
        buf=NULL;
 
        return 0;
}