#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;
 
    return 0;
}