#include <iostream>

int main()
{

    int n;

    std::cin >> n;

    if (n % 10 == 7 || (n / 10) % 10 == 7 || (n / 100) % 10 == 7)
        std::cout << "Yes" << std::endl;
    else
    {
        std::cout << "No" << std::endl;
    }
}