#include<bits/stdc++.h>
using namespace std;
#define fori(i,a,n) for(i=a;i<=n;i++)
#define ford(i,n,a) for(i=n;i>=a;i--)
typedef long long ll;
typedef double db;
typedef long double ld;
typedef unsigned long long ull;
int n;
int main()
{
	cin>>n;
	if (n%10==7||n/100==7||n/10%10==7) puts("Yes");
	else puts("No");
}