
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;

int main()
{
   string n;
   cin >> n;
   bool ok = false;
   for(int i = 0; i < 3; i++)
   {
       if(n[i] == '7')
       {
           ok = true;
           break;
       }
   }
   if(ok== true)
   {
       cout << "Yes" << endl;
   }
   else
   {
       cout << "No" << endl;
   }
    return 0;
}
