local n = io.read()
local m = io.read()
local x = io.read()
local y = io.read()
local a = {}
local b = {}

for i=1,n do
	a[i] = io.read()
end

for j=1,m do
	a[j] = io.read()
end

for i=1,n-1 do
	for j=i+1,n do
		if a[i]<a[j] then
			a[i],a[j] = a[j],a[i]
		end
	end
end

for i=1,m-1 do
	for j=i+1,m do
		if b[i]>b[j] then
			b[i],b[j] = b[j],b[i]
		end
	end
end

if x<a[1] then x=a[1] end
if y>b[1] then y=b[1] end

if x<y then print("War") else print("No War") end