program prob3
    implicit none
    character(len=3) :: S
    read(*,*) S
    if(S(1:1) == '7' .or. S(2:2) == '7' .or. S(3:3) == '7') then
        write(*,*) "Yes"
    else
        write(*,*) "No"
    end if


    stop
contains
end program prob3