#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<cmath>

using namespace std;

int main()
{
    
        int count = 0;
        string n;
        cin >> n;

        for (int i = 0; i < 3; i++)
        {
            if (n[i] == '7')
            {
                count++;
                break;
            }
        }

        if (count >= 1)
        {
            cout << "Yes";
        }
        else
        {
            cout << "No";
        }

	return 0;
}