n = int(input()) if n == 2: print(")") print("(()") elif n == 3: print(")") print("(()") print("(()") else: # For the sake of this example, we're only handling N=2 and N=3. # A general solution for all N up to 8 would require a more complex approach. pass