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

void solver() {
  string s;
  cin >> s;

  string ans = "No";
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '7') ans = "Yes";
  }
  cout << ans << "\n";
}

int main() {
  solver();
  return 0;
}
