program ABC162A
    implicit none
    integer(8)::i,flg
    character(3)::N
    read*,N
    flg=0
    do i=1,3
        if(N(i:i)=="7")flg=1
    end do

    if(flg==0)print'(A)',"No"
    if(flg==1)print'(A)',"Yes"
end program ABC162A