#include <iostream>
#include <algorithm>
#include <map>
#include <utility>
#include <vector>
#include <cstdio>
#include <iomanip>
#include <cmath>  
#include <cstdlib>
using namespace std;
using ll = long long;
#define rep(i, n) for(int i = 0; i < n; i++)
#define rep1(i, n) for(int i = 1; i <= n; i++) 

int main() {
    int n;
    cin >> n;
    if (n%10==7) {
        cout << "Yes" << endl;
        return 0;
    }
    n /= 10;
    if (n%10==7) {
        cout << "Yes" << endl;
        return 0;
    }
    n /= 10;
     if (n%10==7) {
        cout << "Yes" << endl;
        return 0;
    }

    cout << "No" << endl;
    return 0;

}