#include <iostream>

int main(){
    int N;
    std::cin >> N;
    int a=N/100;
    int b=(N-a*100)/10;
    int c=N-a*100-b*10;
    std::string s="No";
    if(a==7||b==7||c==7){
        s="Yes";
    }
    std::cout << s << std::endl;
    return 0;
}