n = gets.to_i
k = 1
k += 1 until k * (k + 1) / 2 >= n
r =  k * (k + 1) / 2 - n
l = k
loop do
    break if l >= r
    print '()'
    r -= l
    k -= 1
end
puts ?) * (k - r) + ?( + ?) * r + ?( * (k - 1)