#define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <algorithm>
#include <queue>

using namespace std;
typedef long long ll;

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)

int main() {

    string N;
    cin >> N;
    string out = "No";
    if(N[0]=='7'||N[1]=='7'||N[2]=='7') out = "Yes";
    cout << out << endl;
    return 0;
}
