#include <bits/stdc++.h>

using namespace std;



typedef long long ll;



int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int n;
    cin >> n;
    if(n % 100 == 7 || n % 100 / 10 == 7 || n / 100 == 7)
        cout << "Yes\n";
    else
        cout << "No\n";
    return 0;
}
