
local N = io.read("*number")
local M = io.read("*number")
local X = io.read("*number")
local Y = io.read("*number")

local tb1 = {}
for i=1, N do
	tb1[i] = io.read("*number")
end
table.sort(tb1)
local tb2 = {}
for i=1, M do
	tb2[i] = io.read("*number")
end
table.sort(tb2)

local function check()
	local x = tb1[#tb1]
	local y = tb2[1]
	local n = y - x
	if n < 0 then return false end
	for i=1, n do
		local Z = x + n
		if Z > X or Z <= Y then return true end
	end
	return false
end
local result = check() and "No War" or "War"

print(result)
