/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,
C#, OCaml, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
#include<string.h>
int main()
{
char x[100]="program";
//scanf("%s",x);
int n=strlen(x);
int mid=n/2;
for(int i=0; i<n; i++){
for(int j=n-1; j>i; j-- ){
printf(" ");
}
for(int k=mid; k<=i; k++){
printf("%c",x[k]);
}
printf("\n");
}
return 0;
}