#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <math.h>
#include <iomanip>
#include <map>
using namespace std;

int main() {
    int n;
    cin >> n;
    int hud, ten, one;
    hud = n / 100;
    ten = (n - hud * 100) / 10;
    one = (n - hud * 100 - ten * 10);
    if (hud == 7 || ten == 7 || one == 7) {
        cout << "Yes" << endl;
    }
    else cout << "No" << endl;
}