#include<stdio.h>
#include <string>
#include<iostream>
using namespace std;
 
int main()
{
    int N;
  char *numStr;
  	cin>>N;
 
	sprintf(numStr, "%d", n);
 
 if(numStr[0]=='7'||numStr[1]=='7'||numStr[2]=='7')
	cout<<"Yes"<<endl;
  else
  	cout<<"No"<<endl;
  
    return 0;
}