      program lucky7
      implicit none
      integer N,A(3)
      read(*,*) N
      A(1)=N/100
      A(2)=(N-A(1)*100)/10
      A(3)=N-A(1)*100-A(2)*10
      if((A(1)==7) or (A(2)===7) or (A(3)===7)) then
         write(*,*) "YES"
      else 
         write(*,*) "No"
      end if
      stop 
      end program lucky7