local n = io.read("*n")
local m = io.read("*n")
local x = io.read("*n")
local y = io.read("*n")
local xt = {}
local yt = {}
for i = 1, n do
    table.insert(xt, io.read("*n"))
end

for i = 1, m do
    table.insert(yt, io.read("*n"))
end
table.sort(xt, function(a, b)
    return a > b
end)
table.sort(yt, function(a, b)
    return a < b
end)
local maxX = math.max(xt[1], x)
local minY = math.min(yt[1], y)
if maxX >= minY then
    print("War")
else
    print("No War")
end