#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <numeric>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))
#include <numeric>
using namespace std;
 int main(){
 int n,a,b,f=0; 
 cin>>n;
while(n>0){
a=n%10;
if(a==7)f=1;
n/=10;
}
if(f==1)cout<<'Yes'<<endl;
else cout<<'No'<<endl;
}
