object Main extends App {

  import scala.io.StdIn._
  import scala.math._
  var left = 0L
  for (_ ← 0 until readLine.trim.toInt){
    val Array(_, direction, length) = readLine.trim.split(' ')
    direction match {
      case "(" ⇒ left += length.toInt
      case _ ⇒ left -= length.toInt
    }
    println(
      if (left == 0) "Yes"
      else "No"
    )
  }
  implicit class Extension[T](val value :T){
    def also(func: T ⇒ Unit): T = {
      func(value)
      value
    }
    def let[R](func: T ⇒ R): R = func(value)
  }
}
