#include<bits/stdc++.h>
using namespace std;

int main()
{
    char c;
    bool flag = false;
    for (int i = 0; i < 3; i++){
        cin >> c;
        if (c == '7') flag = true;
    }
    if (flag) cout << "Yes" << endl;
    else cout << "No" << endl;
}