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

int main(int, char**)
{
    string s;

    cin >> s;

    bool result = false;
    for (int i = 0; i < s.length(); i++)
        if (s[i] == '7') result = true;

    if (result) cout << "Yes" << endl;
    else cout << "No" << endl;

    cin >> s;
    return 0;
}