#include<bits/stdc++.h>
using namespace std;
//#define ll long long
//const int N=100005;
int n,x;
int main(){
    cin>>n;
    x=n%10;
    n/=10;
    if(n/10==7||n%10==7||x==7) cout<<"Yes";
    else cout<<"No";
    return 0;
}