#include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;

int main()
{
    string s;
    cin >> s;
    if (s[0] != '7' && s[1] != '7' && s[2] != '7') {
        cout << "No" << endl;
    } else {
        cout << "Yes" << endl;
    }
    return 0;
}
