import java.security.KeyStore.TrustedCertificateEntry

object Main {

  import java.util.Scanner
  import java.util


  def main(args: Array[String]): Unit = {
    val scanner = new Scanner(System.in)
    var count5 = 0
    var count7 = 0
    var s = ""

    for(i <- 0 to 2){
      s = scanner.next()
      if(s equals "5")
        count5 += 1
      else if(s equals "7")
        count7 += 1
    }

    if(count5 == 2 && count7 == 1)
      println("Yes")
    else
      println("NO")

  }
}