import java.util.Arrays;
import java.util.Scanner;

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));}
	
	
}