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

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

for j=1,m do
	b[j] = io.read("*number")
end

for i=1,n do
	if x<a[i] then x = a[i] end
end

for i=1,m do
	if y > b[i] then y = b[i] end
end


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