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



int main() {
  int N;
  cin >> N;
  string Ns;
  Ns = to_string(N);
  if(Ns.at(0) == '7' || Ns.at(1) == '7' || Ns.at(2) == '7'){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
  
}