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