#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5 + 7;

int main()
{
    int n;
    cin >> n;
    int flag = 0;
    while(n)
    {
        if(n % 10 == 7)
            flag = 1;
        n = n / 10;
    }
    if(flag)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
    return 0;
}
