﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Problem_4_Batman
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = int.Parse(Console.ReadLine());
            char ch = (char)Console.Read();
            var counter = 0;
            for (int i = 0; i < ((n/2)-1); i++)
            {
                Console.Write(new string(' ', i));
                Console.Write(new string(ch,(n- i)));
                Console.Write(new string(' ', n));
                Console.Write(new string(ch, (n - i)));
                Console.WriteLine(new string(' ',i));
                counter++;
            }
            Console.Write(new string(' ', counter));
            Console.Write(new string(ch, (n-counter)));
            Console.Write(new string(' ', (n-3)/2));
            Console.Write(ch);
            Console.Write(' ');
            Console.Write(ch);
            Console.Write(new string(' ', (n-3)/2));
            Console.Write(new string(ch, (n-counter)));
            Console.WriteLine(new string(' ', counter));
            counter++;
            for (int i = 0; i < (n/3); i++)
            {
                Console.Write(new string(' ', counter));
                Console.Write(new string(ch, ((3 * n) - (2 * counter))));
                Console.WriteLine(new string(' ', counter));
            }
            for (int i = 0; i < (n/2); i++)
            {
                Console.Write(new string(' ', (n + 1 + i)));
                Console.Write(new string(ch, (n - 2 - i-i)));
                Console.WriteLine(new string(' ', (n + 1 + i)));
            }

        }
    }
}
