#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>

using ll = long long;

using namespace std;

int main() {
    int n;
    cin >> n;
    cout << (n / 100 == 7 || n / 10 == 7 || n % 10 == 7 ? "Yes" : "No") << '\n';
    return 0;
}