using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static long[] NList => ReadLine().Split().Select(long.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var n = NN; var ans = new List[n]; for (var i = 0; i < n; ++i) { ans[i] = new List(); if (i > 0) ans[i].AddRange(Enumerable.Repeat(')', i)); if (i + 1 < n) ans[i].AddRange(Enumerable.Repeat('(', i + 1)); } WriteLine(string.Join("\n", ans.Select(ai => string.Concat(ai)))); } }