#include <bits/stdc++.h>
#include <stdio.h>
#include <math.h>
using namespace std;
using vi = vector<int>;
using vll = vector<long long int>;
using vb = vector<bool>;
using vvi = vector<vector<int>>;
using vvll = vector<vector<long long int>>;
using ll = long long int;

int main(){
    string s; cin >> s;
    if(s[0] == '7'||s[1]== '7'||s[2] == '7'){
        cout << "Yes";
    }
    else{
        cout << "No";
    }
}