#include <algorithm>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <deque>
#include <functional>
#include <list>
#include <map>
#include <iomanip>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int i;
int main()
{
	scanf("%d",&i);
	if(i%10==7||(i/10)%10==7||i/100==7) printf("Yes");
	else printf("No");
	return 0;
}