import scala.io.StdIn.readLine

object Main extends App {
  val n = readLine.split(" ").map(_.toInt).sorted
  if(n(0)==n(1) && n(1) == n(2) && n(2)==n(3) &&
     n(4)==n(5) && n(5) == n(6) && n(6)==n(7) &&
     n(8)==n(9) && n(9) == n(10) && n(10)==n(11)) println("yes")
  else println("no")
}