      PROGRAM piyo
      IMPLICIT NONE
      character(3) :: s
      integer :: i
      
      read*,s(1:3)
      
      do i = 1,3
        if( s(i:i)=='7' )then
          print*,'Yes'
          stop
        end if
      end do
      
      print*,'No'
      
      
      
      
      END PROGRAM