import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  Vector(sc.nextInt, sc.nextInt, sc.nextInt) match {
    case Vector(5, 5, 7) => "YES"
    case Vector(5, 7, 5) => "YES"
    case Vector(7, 5, 5) => "YES"
    case _ => "NO"
  }
}
