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

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

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

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