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

int main(){
    int N;
    cin >> N;
    int a = N/100;
    N -= a*100;
    int b = N/10;
    N -= b*10;
    int c = N;
    if(a==7||b==7||c==7) cout <<"Yes"<<endl;
    else cout << "No" <<endl;
    
}
