#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define endl "\n"
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.precision(10);

    string s;
    cin >> s;

    if ((s[0]=='7')||(s[1]=='7')||(s[2]=='7'))
    {
        cout << "Yes" << endl;
    }    
    else
    {
        cout << "No" << endl;
    }

    return 0;    
}
