#include<cstdio>
#include<cmath>
#include<cstring>
#include<iostream>
#include<stack>
#include<algorithm>
using namespace std;
int main()
{
	char s[20];
	cin >> s;
	for (int i = 0; s[i] != '\0'; i++) {
		if (s[i] == '7')
		{
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
}

