#include<iostream.h>
using namespace std;
int main(){
  long a;
  int answer;
  cin>>a;
if(a%10==7)
{cout<<"Yes"<<endl;
 return 0;}
  a=a/10;
if(a%10==7)
{cout<<"Yes"<<endl;
 return 0;}
  a=a/10;
  if(a%10==7)
{cout<<"Yes"<<endl;
 return 0;}
  cout<<"No"<<endl;
  return 0;
}