#include<bits/stdc++.h>
#define ll long long
#define loop(n) for(ll i = 0; i<n; i++)
#define sort(a) sort(a.rbegin(), a.rend())
using namespace std;

int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);

    string s; cin>>s;
    loop(3) if(s[i] == '7') return cout<<"Yes\n", 0;
    cout<<"No\n";
    return 0;
}