program one_dimensional_worlds_tale
  implicit none
  integer :: n, m, a, b, x(100) = 0, y(100) = 0
  read(*,*) n, m, a, b
  read(*,*) x(1:n)
  read(*,*) y(1:m)
  if (max(maxval(x(1:n)),a) < min(minval(y(1:m)),b)) write(*,'(a)',advance='no') "No "
  write(*,'(a)') "War"
end program one_dimensional_worlds_tale