#include <iostream>
#include <string>

int main() {
    std::string s;
    std::cin >> s;

    bool flag = false;
    for(int i; i < s.length(); i++) {
        if(s[i] == '7') {
            flag = true;
        }
    }

    if(flag) {
        std::cout << "Yes" << std::endl;
    } else {
        std::cout << "No" << std::endl;
    }
}
