#include<bits/stdc++.h>
#define ll long long
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
 
int main()
{
	int n, j = 0;
    string s;
    cin >> s;
    n = s.length();
    for (int i = 0; i < n; i++)
    {
    	if (s[i] == '7')
    	{
    		cout << "Yes";
    		j = 1;
    		break;
    	}
    }

    if (j == 0)
    {
    	cout << "No";
    }

	return 0;
}