#include<stdio.h>
int main()
{
    int num,a;
    scanf("%d",&num);
    while(num>0)
    {
        a=num%10;
        printf("%d\n",a);
        num/=10;
            if(a==7)
    {
        printf("yes\n");
    }
    else printf("no\n");
    }
}
