#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  string S;
  cin>>S;
  if(S[0]=='7' or S[1]=='7' or S[2]=='7'){
    cout<<"Yes";
  }
  else{
    cout<<"No";
  }
}