public static void Main()
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n / 2 + 1; i++)
string roofDash = new string('-', n / 2 - i);
string roofStars = new string('*', 1 + i * 2);
Console.WriteLine("{0}{1}{0}", roofDash, roofStars);
for (int i = 0; i < n; i++)
string middleStars = new string('*', n - 2);
Console.WriteLine("{0}{1}{0}", "|", middleStars);