#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

int main(){
    int n;
    cin >> n;
    string ans = "No";
    while(n > 0){
        if(n%10 == 7) ans = "Yes";
        n /= 10;
    }
    cout << ans << endl;
}