#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
const ll MOD = 1e9 + 7;
const long long INF = 1LL << 60;

int main()
{
    string n;
    cin >> n;
    if(n.at(0)=='7' || n.at(1)=='7' || n.at(2)=='7'){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}