#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main()
{
    int N;

    int h, t, o;
    cin >> N;
    h = N/100;
    t = (N%100)/10;
    o = N%10;

    if(h==7 || t == 7 || o == 7) cout << "Yes"  << endl;
    else cout << "No" << endl;

    return 0;
}