#include<bits/stdc++.h>
using namespace std;
long long a,b,c,d,i,e,f,g,n,m,k,l;
string s;
int main() {
  cin>>s;
  for(long long i=0;i<s.size();i++) {
    if(s[i]=='7') { cout<<"Yes"; return 0; }
  }
  cout<<"No";
}