#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <stack>
#include <queue>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define ll long long

int main()
{
    string s;
    cin>>s;
    bool a = false;
    rep(i,3) {
        if (s[i] == '7')
            a = true;
    }
    if(a)
        cout << "Yes" << endl;
    else
    {
        cout << "No" << endl;
    }
    
}