#include <iostream>
using namespace std;

int main() {
    bool res = false;
    for (int i = 0; i < 3; ++i) {
        if (cin.get() == '7') {
            res = true;
        }
    }
    cout << (res ? "Yes" : "No") << endl;
    return 0;
}