import scala.io.StdIn._
object Main extends App {
  val n = readInt()
  println((1 until 100000).find(i ⇒ i * (i + 1) / 2 >= n).map(makePair(_, n)).get)
  def makePair(length: Int, n: Int): String = {
    val rest = (length + 1) * length / 2 - n
    if (rest == 0) ")" * length + "(" * length
    else ")" * (length - rest) + "(" + ")" * rest + "(" * (length - 1)
  }
}
