/*
Author - Glitched
Yeet!!
*/
#include "bits/stdc++.h"
using namespace std;
#define ll long long int
#define loop(i,x,n) for(ll i = x;i<n;i++)

int main()
{
    string s;
    cin>>s;
    if(count(s.begin(),s.end(),'7')>=1)cout<<"Yes";
    else cout<<"No";
}