#include<bits/stdc++.h>
#define iamabatman ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define precision cout.precision(10); cout << fixed;
#define endl '\n'
#define ll long long int
#define debug(x) cerr<<#x<<'='<<(x)<<endl;
using namespace std;
int main()
{

  iamabatman
  precision
  string s;
  bool ok=false;
  cin>>s;
  for(int i=0;s[i]!='\0';i++)
  {
    if(s[i]=='7')
    ok=true;
  }
  if(ok)
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}

