#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
    int a[1000];
    int cnt5 = 0, cnt7 = 0;
    for(int i = 0; i < 3; i++){
        int t;
        cin>>t;
        if(t == 5)cnt5++;
        else if(t == 7)cnt7++;
    }
    if(cnt5 == 2 && cnt7 == 1)cout<<"YES";
    else cout<<"NO";

    return 0;
}
