#include<iostream>
#include<math.h>
#include<cstring>
using namespace std;

int main(){
    string number;
    cin >> number;
    int numberF = number.find("7");
    if (numberF == string::npos){
        cout << "NO" << endl;
    }else{
        cout << "YES" << endl;
    }
   return 0;

} /