#include<bits/stdc++.h>
#include<cstdio>
#include<iostream>
#include<map>
#include<string>
#include<queue>
#include<map>
#include<vector>
#include<set>
#include<cstring>
using namespace std;
typedef long long ll;
int main()
{
	ll n;
	cin>>n;
	if(n/100==7||(n/10)%10==7||n%10==7)
	{
		printf("Yes\n");
	 } 
	 else
	 {
	 	printf("No\n");
	 }
}