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

int main(){
int n;
int a,b,c,d;
cin>>n;
a=n/100;
c=n%10;
d=(n-c)-a*100;
b=d/10;
if(a==7)cout<<"Yes"<<endl;
else if(b==7)cout<<"Yes"<<endl;
else if(c==7)cout<<"Yes"<<endl;
else cout<<"No"<<endl;






}