#include <iostream>
using namespace std;

int main() {
    int n;
    bool shingi = false;
    cin >> n;
    while (n) {
        if (n % 10 == 7) shingi = true;
        n /= 10;
    }
    if (shingi) cout << "Yes" << endl;
    else cout << "No" << endl;
    
    return 0; 
}