#include <bits/stdc++.h>
#define fr first
#define se second
#define r_0 return 0
#define ll long long
#define pb push_back
#define TIME ios_base::sync_with_stdio(0);
using namespace std;
ll a , b  , cnt , n , m , ans , mn;
int main(){
    string s;
    cin >> s;
    if( int(s.find('7')) >= 0 )
        cout << "Yes";
    else
        cout << "No";
}
/// ab#c ad#c
/// ab## c#d#
