#include <iostream>
#include <string>
#include<algorithm>
using namespace std;
int main(){
string N;
  cin>>N;
  bool t=false;
  if (N[0]=='7') t=true;
  if (N[1]=='7') t=true;
  if (N[2]=='7') t=true;
  if (t) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
           