#include <bits/stdc++.h>
using namespace std;

int main() {
    int a;
    cin >> a;
    if (a % 10 == 7) cout << "Yes";
    else if (a % 100 / 10 == 7) cout << "Yes";
    else if (a / 100 == 7 ) cout << "Yes";
    else cout << "No";
}
