program main
integer ::a,b,c,d,e1=1,e2=1,i,j
integer,allocatable :: x(:),y(:)

read(*,*)a,b,c,d
allocate(x(a),y(b))
read(*,*)x(1:a)
read(*,*)y(1:b)
do i=c+1,d-1
	e1 = 1
    e2 = 1
	do j =1,a
    	if (x(j)>=i) then
        	e1=0
            exit
        end if
    end do
    do j =1,b
    	if (y(j)<i) then
        	e2=0
            exit
        end if
    end do
    if (e1==1 .and. e2==1) exit
end do
if(e1==1 .and. e2==1) then
	write(*,*)"No War"
else 
	write(*,*)"War"
end if
end program
