using System;
public class Program
{
public static void Main()
int n =int.Parse(Console.ReadLine());
string s = "*";
string s2 = "";
string s1 = "";
string sm = "";
int n1 = n/2;
for(int g = 0;g<n1;g++)
s2 += "_";
}
for(int i =1;i<=n1;i++)
Console.WriteLine(s2+s);
s2 = s2.Remove(s2.Length-1);
s +="**";
for(int m = 0;m<n;m++)
sm+="*";
Console.WriteLine(sm);
for(int l = 0;l<=n1;l++)
s1 += "_";
s = s.Remove(s.Length-2);
Console.WriteLine(s1+s);