#include<bits/stdc++.h>
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<algorithm>
#include<queue>
#include<stack>
#include<cctype>
#include<cstring>
#include<list>
#include<map>
#include<sstream>
#include<set>
#include<string>
#include<vector>
typedef long long ll;
using namespace std;
#define MN 300005
#define MM 600005
#define F(i,a,b) for(int i=a;i<=(b);++i)
#define F2(i,a,b) for(int i=a;i<(b);++i)
#define RF(i,a,b) for(int i=a;i>=(b);--i)
#define fast  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define inf 0x3f3f3f3f
#define infll 0x3f3f3f3f3f3f3f3f
#define int long long
signed main()
{
   int T;
   while(cin>>T){
       if(T%10==7){
           cout<<"Yes"<<endl;
           continue;
       }
       if(T/100==7)
       {
           cout<<"Yes"<<endl;
           continue;
       }
       if(T/10%10==7)
       {
           cout<<"Yes"<<endl;
           continue;
       }
       cout<<"No"<<endl;
   }
   return 0;
}
