   program abc162a
      implicit none
      character(3)::n
      integer::i

         read *,n
         do i=1,3
            if (n(i:i)=='7') then
               print *,'Yes'
               go to 10
            end if
         end do
         print *,'No'

10       stop
   end program abc162a