program abc
    integer,dimension(5) :: anthennas
    integer k

    do i=1,5
        read *, anthennas(i)
    end do
    read *, k

    if ((maxval(anthennas)-minval(anthennas)) > k) then
        print '(A)', ':('
    else
        print '(A)', 'Yay!'
    end if
end program abc