program ABC110B
    implicit none
    integer(8)::i
    integer(8)::flg=0
    integer(8)::N,M,X,Y,Z
    integer(8),allocatable,dimension(:)::A,B

    read(5,*)N,M,X,Y
    allocate(A(N))
    allocate(B(M))
    read(5,*)(A(i),i=1,N)
    read(5,*)(B(i),i=1,M)

    A=iqsort(A)
    B=iqsort(B)

    do i=X+1,Y
        if(B(1)>=i .and. A(N)<i)then
            flg=1
            exit
        end if
    end do

    if(flg==0)then
        print'(A)',"War"
    else
        print'(A)',"No War"
    end if

contains
    recursive function iqsort(ix) result(ires)
      integer(8), allocatable :: ires(:)
      integer(8), intent(in)  :: ix(:)
      integer :: k
      if (size(ix) <= 1) then 
        ires = ix
      else  
        k = ix(size(ix) / 2)
        ires = [iqsort(pack(ix, ix < k)), pack(ix, ix == k), iqsort(pack(ix, ix > k))] 
      end if
    end function iqsort
end program ABC110B