n = int(input()) print('(' * (n - 1)) for i in range(n - 1, 0, -1): print(')' * i + '(' * (i - 1))