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


}
