#include<bits/stdc++.h>
using namespace std;

#define ll long long 
int ar[100005];

int main()
{
    ll a,b,c,d,e;
    string s1,s2;
    cin>>s1;
    if(s1[0]=='7'||s1[1]=='7'||s1[2]=='7')
        cout<<"Yes\n";
    else
        cout<<"No\n";
}
