#include "bits/stdc++.h"

using namespace std;

using ll = long long;

constexpr char endl('\n');

#define FOR(i,l,r) for(size_t i=(l);i<(r);++i)
#define REP(i,n) FOR(i,0,n)
#define INF 100000000000ULL



int main()
{
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);
    
    string s;
    cin >> s;
    bool l = false;
    REP(i, 3) {
        if (s.at(i) == '7') {
            l = true;
            break;
        }
    }
    if (l) {
        cout << "Yes" << ::endl;
    }
    else {
        cout << "No" << ::endl;
    }

    return 0;
}
