#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(){
	int n,a,b,c;
	scanf("%d",&n);
	a=n%10;
	n=n/10;
	b=n%10;
	n=n/10;
	c=n;
	if(c==7||b==7||a==7){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	return 0;
}