#include<iostream>

int main(){
    long long N;
    std::cin >> N;
    if((N/100)%10 == 7){
        printf("Yes\n");
    }else if((N/10)%10 == 7){
        printf("Yes\n");
    }else if(N%10 == 7){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
}