#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])
    {
        int sum1=0,sum2=0;
        for(int i=0; i<3; i++)
        {

            if(a[i]==7)
                sum1++;
            if(a[i]==5)
                sum2++;
        }
        if(sum1==1&&sum2==2)
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }


}
