#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<cstddef>
#include<queue>
#include<math.h>
#include<iomanip>
using namespace std;

int main()
{
    string N;
    cin >> N;
    if(N.at(0) == '7' || N.at(1) == '7' ||N.at(2) == '7')cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}
