#include<bits/stdc++.h>
using namespace std;


int main()
{
    int a,b,c,n;
    cin>>n;
    a=n%10;
    n=n/10;
    b=n%10;
    n=n/10;
    c=n;
    if(a==7 || b==7 || c==7){
        printf("Yes");
    }
    else{
        printf("No");
    }
}
