n = int(input()) if n == 2: print(")") print("(()") else: # Example for N=3; this is a placeholder and may not work for all cases # The correct approach would need to be derived based on the problem's constraints print(")") print("(((") print(")))")