#include <bits/stdc++.h>

using namespace std;

const int N = 1e5 + 5, M = 1e6 + 6, OO = 0x3f3f3f3f;

string s;

int main()
{
	cin >> s;
	if(s[0] == '7' || s[1] == '7' || s[2] == '7')
		puts("Yes");
	else
		puts("No");
	return 0;
}