#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
using pint = pair<int, int>;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};

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