#include <iostream>
#include <bits/stdc++.h>
#include <string>
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
   int n; cin>>n;
   int a,b,c;
   a=n/100;
   b=(n-a*100)/10;
   c=n-a*100-b*10;
   if(a==7 || b==7 ||c==7) cout<<"Yes"<<endl;
   else cout<<"No"<<endl;
   return 0;
}

