// #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep2(i,a,b) for(int i=(a);i<(b);++i)

template<class T> inline void chmin(T& a, T b) {if (a > b) a = b;}
template<class T> inline void chmax(T& a, T b) {if (a < b) a = b;}



int main() {
  string N;
  cin >> N;
  rep(i,N.size()) {
    if (N[i]=='7') {
      cout << "Yes" << endl;
      return 0;}
  }
  cout << "No" << endl;
}