#include <cmath>

#include <algorithm>
#include <iostream>
#include <string>
#include <vector>

using namespace std;

using ll = long long;
using ld = long double;
using vi = vector<int>;

string s;

void input() {
  cin >> s;
}

void solve() {
  string ans = "No";

  if (s.find('7') != string::npos)
    ans = "Yes";

  cout << ans << '\n';
}

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);

  cout.precision(16);
  cout << fixed;

  int _times = 1;

#ifdef _DEBUG
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);

  _times = 2;
#endif

  // cin >> _times;

  while (_times--) {
    input();
    solve();
  }
}

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

int main() {
  int N;
  cin >> N;
  if(N%10 == 7||N%100 == 70||N%100 == 71||N%100 == 72||N%100 == 73||N%100 == 74||N%100 == 75||N%100 == 76||N%100 == 78||N%100 == 79||N/100 == 7){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}