#include<bits/stdc++.h>
using namespace std;
int main()
{
  string c;
  cin>>c;
  int i = -1;
  while(c[++i]!='\0'){
    if(c[i]=='7'){
      cout<<"Yes";
      return 0;
    }
  }
  cout<<"No";
  return 0;
}