import java.util.Scanner ;
public class Main {
public static void main
( String [ ] args
) { int height
= new Scanner
( System .
in ) .
nextInt ( ) ; printCross( height) ;
}
private static void printCross( int height) {
for ( int i = 0 ; i < height; i++ ) {
StringBuilder sb = getEmptySbWithLengthOfN( height) ;
sb.setCharAt ( i, 'X' ) ;
sb.setCharAt ( height - i - 1 , 'X' ) ;
}
}
private static StringBuilder getEmptySbWithLengthOfN( int height) {
StringBuilder sb = new StringBuilder( "" ) ;
for ( int i = 0 ; i < height; i++ ) {
sb.append ( " " ) ;
}
return sb;
}
private static void printNspaces( int n) {
for ( int i = 0 ; i < n; i++ ) {
}
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwogCnB1YmxpYyBjbGFzcyBNYWluIHsKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBpbnQgaGVpZ2h0ID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKS5uZXh0SW50KCk7CiAgICAgICAgcHJpbnRDcm9zcyhoZWlnaHQpOwogICAgfQogCiAgICBwcml2YXRlIHN0YXRpYyB2b2lkIHByaW50Q3Jvc3MoaW50IGhlaWdodCkgewogICAgICAgIGZvciAoaW50IGkgPSAwOyBpIDwgaGVpZ2h0OyBpKyspIHsKICAgICAgICAgICAgU3RyaW5nQnVpbGRlciBzYiA9IGdldEVtcHR5U2JXaXRoTGVuZ3RoT2ZOKGhlaWdodCk7CiAgICAgICAgICAgIHNiLnNldENoYXJBdChpLCAnWCcpOwogICAgICAgICAgICBzYi5zZXRDaGFyQXQoaGVpZ2h0IC0gaSAtIDEsICdYJyk7CiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihzYik7CiAKICAgICAgICB9CiAgICB9CiAKICAgIHByaXZhdGUgc3RhdGljIFN0cmluZ0J1aWxkZXIgZ2V0RW1wdHlTYldpdGhMZW5ndGhPZk4oaW50IGhlaWdodCkgewogICAgICAgIFN0cmluZ0J1aWxkZX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