#include<cstdio>
#include<string>

using namespace std;

int main(){
    int n;
    scanf("%d",&n);
    bool ans = false;
    while(n>0){
        if(n%10==7) ans = true;
        n/=10;
    }
    printf("%s\n",ans?"YES":"NO");
}