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

int main() {
    int a, c;
    string b;
    cin >> a;
    b = std::to_string(a);
    c = b.find("7");
    if (c != string::npos) cout << "Yes";
    else cout << "No";
}
