n = int(input()) if n == 2: print(')') print('(()') else: balance = -1 print(')') for _ in range(n-1): print('(()')