#include<bits/stdc++.h>
#define RE return
using namespace std;
int main()
{
    ios::sync_with_stdio(0);
    int x;
	cin>>x;
	if(x%10==7||x/100==7||x/10%10==7) cout<<"Yes";
	else cout<<"No"; 
    RE 0;
}
