#include<bits/stdc++.h>
using namespace std;
#define IO ios_base::sync_with_stdio(false)
int a[200000], vs[200000],b[200020], co[200200];
vector<int>v[300000];
string s;
int main()
{
    int i, j, m, k, n, l;
    cin>>s;
    if(s[0]=='7'||s[1]=='7'||s[2]=='7') cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;

}
