#include<vector>
#include<algorithm>
#include <iostream>
using namespace std;

int main(){
    int a[4];
    cin >> a[0] >> a[1] >> a[2];
    sort(a,a+3);
    if(a[0] == 5 && a[1] == 5 && a[2] == 7){
        puts("YES");
    }else{
    
        puts("NO");
    }
    return 0;
}
 