"use strict"
function Main(input) {
  const inputArray = input.split(" ");
  let count5 = 0, count7 = 0;
  inputArray.forEach(value => {
    if(value == 5) count5++;
    else if(value == 7) count7++;
  });
  if(count5 === 2 && count7 === 1) console.log("YES");
  else console.log("NO");
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));