#include <iostream>
#include <cstring>
#include <cmath>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <set>
#include <map>
#include <iterator>

using namespace std;

int main()
{
    int n;
    cin >> n;
    int c = 0;
    for (int i = 0;i < 3;i++){
        if (n%10 == 7){
            c = 1;
            break;
        }
        n = n/10;
    }
    if (c == 1){
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}
