#include <bits/stdc++.h>
using namespace std;

int main() {
  string N,A,B,C;
  cin >>A;
    if(A[0]=='7'||A[1]=='7'||A[2]=='7'){
     cout<<"Yes"<<endl;
      return 0;
    }
  cout <<"No"<< endl;
}
