program main
	implicit none
    integer::a,i,b
    character::s
    read(*,*) a
    s='f'
    do i=1,3
    	b=mod(a,10)
        a=a/10
        if(b==7)then
        	s='t'
        end if
    end do
    
    if (s=='t')then
    	write(*,*) 'Yes'
    else
    	write(*,*) 'No'
    end if
    stop
end program main
        
