#include <iostream>
#include <string>

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(NULL);

    string n;
    cin >> n;

    cout << (n[0] == '7' || n[1] == '7' || n[2] == '7' ? "Yes" : "No") << endl;

    return 0;
}
