program worlds_tale
  implicit none
  integer              :: n, m, x, y
  integer, allocatable :: xi(:), yi(:)
  integer              :: inf, sup
  read(*,*) n, m, x, y
  allocate(xi(n),yi(m))
  read(*,*) xi(:)
  read(*,*) yi(:)
  sup = maxval(xi)
  inf = minval(yi)
  if (min(inf,y)-max(sup,x) .ge. 1) then
     write(*,'(a)') "No War"
  else
     write(*,'(a)') "War"
  end if
  deallocate(xi,yi)
  stop
end program worlds_tale