local mma, mmi = math.max, math.min
local ior = io.input()
local n, m, x, y = ior:read("*n", "*n", "*n", "*n")
local xmax = -100
local ymin = 100
for i = 1, n do
  local a = ior:read("*n")
  xmax = mma(xmax, a)
end
for i = 1, m do
  local a = ior:read("*n")
  ymin = mmi(ymin, a)
end
if ymin <= xmax then
  print("War")
else
  local found = false
  for z = xmax + 1, ymin do
    if x < z and z <= y then
      found = true
      break
    end
  end
  print(found and "No War" or "War")
end
