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

int n;
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cin>>n;
    while(n){
        int x=n%10;
        if (x==7) return cout<<"Yes",0;
        n/=10;
    }
    
    cout<<"No";
    
    
    
    
    return 0;
}