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