#include<bits/stdc++.h>
using namespace std;
 
#define ll long long
#define pb push_back
#define printV(v) for(int i=0;i<v.size();i++){cout << v[i]<< " ";} cout << endl
#define printRev(v) for(int i=v.size()-1;i >= 0;i--){cout << v[i] << " ";} cout << endl
#define sortV(v) sort(v.begin(),v.end())
#define revV(v) reverse(v.begin(),v.end())
#define FOR(i,from,n) for(int i=from;i<n;i++)
#define FOL(i,from,n) for(int i=from;i >= n;i--)
    
    ll a,b,c,d,e,f,g,n,m,k,t,x,h,w,q;
    ll mod = 1000000007;
    
    void solve(){
        string str;
         cin >> str;
         for(int i=0;i<3;i++){
             if(str[i]=='7'){
                 cout <<"Yes";
                 return;
             }
         }
         cout << "No";
    }
        

  
   
    int main(){
    ios_base::sync_with_stdio(false);
    
    int cases = 1;
    //cin >> cases;
  
    while(cases--){ 
        solve();
    }

    return 0;

    }