#include <iostream>
#include <string>

using namespace std;

int main(void){
    string inp;
    cin >> inp;
    if(inp.find('7')!=-1)
        cout << "Yes";
    else
        cout << "No";
    return 0;
}