#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a;
  cin>>a;
  int l,m,n;
  l=a%10;
  m=(a%100)/10;
  n=a/100;
  if(m==7 || l==7 || n==7)
  cout<<"Yes"<<endl;
  else
  	cout<<"No"<<endl;
  return 0;
}
  