#pragma region
#define _USE_MATH_DEFINES
#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <list>
#include <iomanip>
#include <cstdint>
#include <cstdlib>
 
using namespace std;
 
int main()
{
    string N;
    cin >> N;
 
    string ans = "No";
 
 
    for (int i = 0; i < 3; i++)
    {
        if (N.at(i) == '7')
        {
            ans = "Yes";
        }
        
    }
    
    cout << ans << endl;
   
}