local N, M, X, Y = io.read("n", "n", "n", "n")
local x = {} for i=1,N do x[i]=io.read("n") end x[#x]=X table.sort(x)
local y = {} for i=1,M do y[i]=io.read("n") end y[#y]=Y table.sort(y)
if x[#x] < y[1] then
  print("No War")
else
  print("War")
end