#include <stdio.h>
#include <stdlib.h>
int main(int argc, char const *argv[]) {
char str[100] = {'l','a','u','f','t','\n','i','d','e','a','\n','w'};
printf("%s\n",str);
str[strcspn(str, "\n")] = ' '; // convert the first line break to space
printf("%s",str);
return 0;
}