#include <bits/stdc++.h>
#include <iostream>
#include <limits>
#include <numeric>
#include <type_traits>

using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define srt(i) sort(i.begin(), i.end())
#define rvt(i) sort(i.begin(), i.end(), greater<int>())
 
int main() {
  string n;
  cin >> n;

  rep(i, 3){
    char c = n.at(i);

    if(c=='7') {
      cout << "Yes" << endl;
      return 0;
    }
  }

  cout << "No" << endl;
}