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