#include <bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    string n;
    cin >> n;
    bool r = false;
    for (char c : n) {
        if (c == '7') {
            r = true;
            break; 
        }
    }
    cout << (r ? "YES" : "NO") << "\n";
    
    return 0;
}

// scanf("%d %d", &a, &b)
// printf("%d %d", 123, 456);

// getline(cin, s)
// while (cin >> x) {...} - read unknown data
