#include <iostream>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <climits>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <list>
#include <cassert>
#include <unordered_map>

#define _(x) { cout << #x << " = " << x << " "; }

const double E = 1e-8;
const double PI = acos(-1);

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    string n;
    cin >> n; 
    if (n[0] - '0' == 7 || n[1] - '0' == 7 || n[2] - '0' == 7) cout << "Yes\n";
    else cout << "No\n";
    return 0;
}

