n = int(input())
for i in range(n):
    if i == n - 1:
        print(i * ')')
    else:
        print(i * ')' + (i + 1) * '(')