#include <iostream>

using namespace std;

int main()
{
    ios_base::sync_with_stdio(0);
    string a;
    cin >> a;
    if (a[0] == '7' || a[1] == '7' || a[2] == '7')
        cout << "Yes";
    else
        cout << "No";
    return 0;
}
