#include<iostream>

using namespace std;
int main()
{
    int N;
    int t1,t2;
    bool seven;
    seven = false;
    
    

    cin >> N;
    t1 = N/10;
    t2 = N/100;
    
    if((N % 10) == 7){
        seven = true;
    }else if((t1 % 10) == 7){
        seven = true;
    }else if((t2 % 10) == 7){
        seven = true;
    }

    if(seven == true){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

   
    return 0;
    
}