#include<iostream>
using namespace std;
int main() {
    int n;
    cin>>n;
    int t;
    while(n>0) {
        t = n%10;
        if(t==7) {
            cout<<"Yes";
            return 0;
        }
        n /= 10;   
    }
    cout<<"No";
}