program main
   implicit none
   integer::a(5),k
   integer i
   do i=1,5
      read(*,*)a(i)
   enddo
   read(*,*)k
   if(maxval(a)-minval(a)>k)then
      write(*,"(a2)")":("
   else
       write(*,"(a4)")"Yay!"
   endif
end program main
