#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cmath> 
#include <string>
#include <vector>
#include <queue> 
#include <stack> 
#include <set>
#include <map>
using namespace std;
int main(void)
{
	int a,b,c;
	cin>>a>>b>>c;
	int cnt1=0,cnt2=0;
	if(a==5) cnt1++;
	if(b==5) cnt1++;
	if(c==5) cnt1++;
	if(a==7) cnt2++;
	if(b==7) cnt2++;
	if(c==7) cnt2++;
	if(cnt1==2&&cnt2==1)
	   cout<<"YES"<<endl;
	else
	   cout<<"NO"<<endl;
	return 0;      
}