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

int main(){
    string K;

    cin >> K;

    bool check = false;
    for(int i=0; i<3; i++){
        if(K[i] == '7')
            check = true;       
    }

    if(check)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;

}