import java.util.Scanner;


public class MainSendClock {

/**
* @param args
*/ public static void main(String[] args) {

// TODO Auto-generated method stub

int wid;
String s=new String();
Scanner r = new Scanner(System.in);
System.out.print ("Enter odd width: ");
wid = r.nextInt();
while((wid%2)==0)
{
System.out.println("your value is wrong please reenter an odd value only:");
wid = r.nextInt();
}
System.out.print ("Enter shpe: ");
s = r.next();


for(int i=1;i<((wid+1)/2);i++){
int k=0;
while(k<i){
System.out.print(s);
k++;
}
int x=0;
while(x<wid-(i*2)){
System.out.print(" ");
x++;
}
k=0;
while(k<i){
System.out.print(s);
k++;
}


System.out.println();


}//end for
for(int i=((wid+1)/2)-1;i>1;i--){
int k=1;
while(k<i){
System.out.print(s);
k++;
}

int x=0;
while(x<wid-(i*2)+2){
System.out.print(" ");
x++;
}

k=1;
while(k<i){
System.out.print(s);
k++;
}


System.out.println();
}
}
}