N, M, X, Y = string.gmatch(io.read(), "(%d)")
x, y = {X}, {Y}

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

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

if x[#x] < y[1] then
  print("No War")
else
  print("War")
end
