#include <bits/stdc++.h>

int main()
{
    std::string s;
    std::cin >> s;
    for (int i = 0; i < s.length(); i++) {
        if (s[i] == '7') {
            std::cout << "Yes" << std::endl;
            return 0;
        }
    }

    std::cout << "No" << std::endl;
    return 0;
}
