n = int(input()) a = ["(", ")", ")((", "))(", "))(((", ")))((", ")))((((", "))))((("] b = [")(", "))((", ")))((("] if n%2: print(*a[:n//2*2], sep="\n"); print(b[n//2-1]) else: print(*a[:n], sep="\n")