module app;

import std.stdio;
import std.string;

void main()
{
	auto abc = readln().strip();
    if (abc == "5 5 7" || abc == "5 7 5" || abc == "7 5 5")
        write("YES");
    else
        write("NO");
}
