using System;
public class Program
{
public static void Main()
var n = int.Parse(Console.ReadLine());
// Print the top row: + - - - +
Console.Write("+");
for (int i = 0; i < n-2; i++)
Console.Write(" -");
Console.WriteLine(" +");
for (int row = 0; row < n - 2; row++);
for (int col = 0; col < n - 2; col++);
// TODO: print the mid rows: | - - - |
// TODO: print the bottom row: + - - - +
}