#include<iostream>
#include<stdlib.h>
#include<string>
#include<vector>
#include<algorithm>
#include<cmath>
using namespace std;

int main()
{
  int a;
  int a_1=0;
  int a_2=0;
  int a_3=0;
  
  cin>>a;
  
  a_1=a/100;
  a=a%100;
  a_2=a/10;
  a_3=a%10;
  
  if(a_1==7||a_2==7||a_3==7)
  {
    cout<<"Yes"<<endl;
  }
  else
  {
    cout<<"No"<<endl;
  }

  return 0;
}