 #include<bits/stdc++.h>
using namespace std;
#define REP(i,a,b) for(int i=a;i<b;++i)
#define REPN(i,a,b) for(int i=a;i<=b;++i)
#define db1(x) cout<<#x<<"="<<x<<'\n'
#define db2(x,y) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<'\n'
#define db3(x,y,z) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<","<<#z<<"="<<z<<'\n'
#define ll long long
const int M=1e9+7;



int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    int n;
    cin>>n;
    bool cnt=0;
    while(n)
   {
     int temp=n%10;
     if(temp==7)
    {
      cnt=1;
      break;
    }
    n/=10;
  }
  if(cnt) {
  cout<<"Yes"<<"\n";
}
    else
	 cout<<"No"<<"\n";
	 
      return 0;
}