import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// 1.获取要构成金字塔的基本字符
Scanner sc = new Scanner(System.in);
String c = sc.next();
// 2.利用字符构成金字塔造型
for(int i = 0; i < 5; i++) {
for(int j = 4-i; j > 0; j--) { // 输出空格
System.out.print(" ");
}
for(int j = 4-i ; j < 5; j++) { // 输出字符加上空格
System.out.print(c+" ");
}
System.out.println(); // 换行
}
}
}