#include<iostream>
#include<cstdio>
#include<queue>
#include<vector>
#include<string.h>
#include<algorithm>
#include <cmath>

using namespace std;

char S[10];

int main()
{
  cin >>S;
  if(S[0]=='7' || S[1]=='7' || S[2]=='7')
  {
    cout <<"Yes";
  }
  else
  {
    cout << "No";
  }
  
  
  
}