#include<iostream>
#include <algorithm>
using namespace std;

int main()
{
	int s[3];
	cin>>s[0]>>s[1]>>s[2];
	sort(s,s+3);
	if(s[0]==5&&s[1]==5&&s[2]==7)
	{
			cout<<"YES"<<endl;
	}

	else 
	{
			cout<<"NO"<<endl;
	}
	
    return 0;
}