import sys input = sys.stdin.readline N = int(input()) for i in range(N-1): ans = ')' * i + '(' * (i+1) print(ans) print(')' * (N-1))