#include<iostream>
#include<string>
using namespace std;

int main()
{
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  
  string str;
  cin>>str;
  if(str[0]=='7' || str[1]=='7' || str[2] =='7')
    {
      cout<<"Yes";
    }
   else
      cout<<"No";
  return 0;
}