#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;

int main() {
    string n;
    cin >> n;

    bool answer = false;

    for(int i=0; i<3; i++) {
        
        if( n.at(i) == '7'){
        answer = true;
        }

    }

    if(answer)
    cout << "Yes" << endl;
    else
    {
        cout << "No" << endl;
    }
    
}