program main
implicit None
integer::n,m,x,y,z,i,j,k
integer,allocatable::a(:),b(:)

read *,n,m,x,y
allocate(a(n))
allocate(b(m))

read *,a
read *,b

z = x

do i = 1,n
	if(z < a(i))then
		z = a(i)
	endif
enddo

k = y

do i = 1,m
	if(k >= b(i))then
		k = b(i)
	endif
enddo

j = 0
if (z >= y)then
	j = 1
endif

if (z >= k)then
	j = 1
endif

if (j == 0)then
	print 101,"No War"
	else
		print 101,"War"
endif

101 format(a)
end program main