#include <bits/stdc++.h>

using namespace std;

int main()
{
  int N,a,b,c;
  cin>>N;
  a=N%10;
  b=(N%100);
  b=b/10;
  c=N/100;
  if(a==7 || b==7 || c==7)
  {
    cout<<"Yes';
  }
  else
  {
    cout<<"No";
  }
  return 0;
}