PROGRAM ATCODER

implicit none
integer :: a(5),k,i,j

do i = 1,5
  read*, a(i)
end do

read*, k

do i = 1, 5, 1
  do j = 1, 5, 1
    if ( i == j ) cycle
    if ( abs(a(i)-a(j)) > k ) then
      print'(a)', ':(' 
      stop
    end if
  end do
end do

print'(a)', 'Yay!'

END PROGRAM ATCODER