N, M, X, Y = io.read("*n","*n","*n","*n")
io.read()
x, y = {X}, {Y}

for v in string.gmatch(io.read(),"(%d+)") do
  table.insert(x, tonumber(v))
end

for v in string.gmatch(io.read(),"(%d+)") do
  table.insert(y, tonumber(v))
end

if math.max(table.unpack(x)) < math.min(table.unpack(y)) then
  print("No War")
else
  print("War")
end