#include <iostream>
#include <string>
#include <cmath>
#include <ctime>
#include <vector>
#include <algorithm>
#include <cstdlib>
using namespace std;

int main(){
    string N;
    cin >> N;

    string s = "No";
    if(N[0] == '7') s = "Yes";
    if(N[1] == '7') s = "Yes";
    if(N[2] == '7') s = "Yes";

    cout << s << endl;
}