#include<iostream>
#include<cstring>
#include<cstdio>
#include<algorithm>
#include<queue>
#include<cmath>
#include<stack>
using namespace std;
int x;
int sum1=0, sum2=0;
int mapp[3];
int main()
{
        for(int i=0; i<3; i++)
        {
            scanf("%d",&x);
            if(x==5)
                sum1++;
            if(x==7)
                sum2++;
        }
        if(sum1==2&&sum2==1)
            cout<<"YES";
        else
            cout<<"NO";
    return 0;
}
