open System

let tmp = Array.map int (Console.ReadLine().Split(' '))
let sorted_tmp = Array.sort tmp
Console.WriteLine (if sorted_tmp.[0] = 5 && sorted_tmp.[1] = 5 && sorted_tmp.[2] = 7 then "YES" else "NO")
