program onedimensional_worlds_tale
  implicit none
  integer n, m, x, y
  integer,allocatable :: xs(:), ys(:)

  read *, n, m, x, y
  allocate(xs(n + 1), ys(m + 1))
  read *, xs(1:n), ys(1:m)
  xs(n + 1) = x
  ys(m + 1) = y
  if (maxval(xs) < minval(ys)) then
     print '(a)', "No War"
  else
     print '(a)', "War"
  end if
  deallocate(xs, ys)
end program onedimensional_worlds_tale
