#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include<iostream>
#include<vector>
using namespace std;
int main()
{
    int a[3];
    while(cin>>a[0]>>a[1]>>a[2])
    {
      
      sort(a,a + 3);
      if(a[0] == 5 && a[1] == 5 && a[2] == 7)
 
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }


}
