import java.util.Arrays; import java.util.Scanner; class Account { String name; String password; int balance; int id = 1000; static int counter = 1000; public Account(String name, String password, int balance) { this.name = name; this.id = ++counter; this.password = password; this.balance = balance; } int getId() { return id; } String getPass() { return password; } String getName() { return name; } int getBalance() { return balance; } } public class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String[] s = new String[N]; Arrays.fill(s, ""); if (N % 2 == 0) { for (int i = 0; i < N / 2; ++i) { for (int j = 0; j < i; ++j) { s[i] = s[i] + ")"; } for (int j = 0; j < i + 1; ++j) { s[i] = s[i] + "("; } } for (int i = 0; i < N / 2; ++i) { for (int j = 0; j < i + 1; ++j) { s[i + N / 2] = s[i + N / 2] + ")"; } for (int j = 0; j < i; ++j) { s[i + N / 2] = s[i + N / 2] + "("; } } } else { for (int i = 0; i <= N / 2; ++i) { for (int j = 0; j < i; ++j) { s[i] = s[i] + ")"; } for (int j = 0; j < i + 1; ++j) { s[i] = s[i] + "("; } } for (int i = 0; i < N / 2; ++i) { for (int j = 0; j < i + 1; ++j) { s[i + N / 2 + 1] = s[i + N / 2 + 1] + ")"; } if (i == N / 2 - 1) s[i + N / 2 + 1] += ")"; for (int j = 0; j < i; ++j) { s[i + N / 2 + 1] = s[i + N / 2 + 1] + "("; } } } for (int i = 0; i < N; ++i) { System.out.println(s[i]); } } void tr(Object...objects) {System.out.println(Arrays.deepToString(objects));} }