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

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

    string N;
    cin >> N;

    int pos = N.find("7");
    if(pos == -1) cout << "No" << "\n";
    else cout << "Yes" << "\n";
}