#include<bits/stdc++.h>
using namespace std;
#define For(i,m,n) for(int i=m;i<n;i++)
#define FOR(i,n) for(int i=0;i<n;i++)
#define ll long long
#define ull unsigned long long
#define lli long long int
#define pb push_back
ll mob=1000000007;
using namespace std;
int main()
{ 
int n;
cin>>n;
int a,b,c;
c=n%10;
n=n/10;
b=n%10;
n=n/10;
a=n%10;
if(a==7||b==7||c==7)
cout<<"Yes";
else
cout<<"No";




return 0;
}








