#include <iostream>
#include <cmath>
#include <cstdio>
#include <cstring>
using namespace std;
int main ()
{
	int A,B,C;
	while (cin>>A>>B>>C)
	{
		if (A==5&&B==5&&C==7)
		{
			cout<<"YES"<<endl;
		}
		else if (A==5&&B==7&&C==5)
		{
			cout<<"YES"<<endl;
		}
		else if (A==7&&B==5&&C==5)
		{
			cout<<"YES"<<endl;
		}
		else 
		{
			cout<<"NO"<<endl;
		}
	}
	return 0;
} 