#include<bits/stdc++.h>
using namespace std;
#define ll long long
int n,a,b,c;
int main()
{
	cin>>n;
	a=n%10;
	b=n/100;
	c=n/10%10;
	if(a==7||b==7||c==7)cout<<"Yes";
	else cout<<"No";
    return 0;
}
