import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        String str=sc.next();
        char ch=str.charAt(0);//java常用API
        for(int i=0;i<5;i++){
            if(i==0){
                for(int j=0;j<2;j++){
                    System.out.print(" ");
                }
                System.out.println(ch);
            }
            if(i==1){
                System.out.print(" ");
                for(int k=0;k<3;k++){
                    System.out.print(ch);
                }
                System.out.println();
            }
            if(i==2){
                for(int m=0;m<5;m++){
                    System.out.print(ch);
                }
                System.out.println();
            }
            if(i==3){
                System.out.print(" ");
                for(int k=0;k<3;k++){
                    System.out.print(ch);
                }
                System.out.println();
            }
             if(i==4){
                for(int j=0;j<2;j++){
                    System.out.print(" ");
                }
                System.out.println(ch);
            }   
        }
    }
}