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

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

  string N; cin >> N;
  string ans = "No";
  for (ll i = 0; i < 3; i++) {
    if (N[i] == '7') ans = "Yes";
  }
  cout << ans << '\n';
  return 0;
}