#include <bits/stdc++.h>
using namespace std;
int main()
{
    
   int a,b,c=0;
   string s;
   cin>>s;
   for (int i = 0; i < 4; i++) {
       /* code */
  
   if(s[i]==7)
   {
       c++;
   }
   }
   if(c>0)
   {
       cout<<"Yes";
   }
   else
   cout<<"No";
    return 0;
}
