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

int main() {
  string n;
  cin >> n;

 if (n.substr(1, 1) == 7 || n.substr(2, 1) == 7 || n.substr(3, 1) == 7)
    cout << "Yes" << endl;
  else cout << "No" << endl;
}