program abc110b
  integer n, m, x, y
  integer, allocatable :: xs(:), ys(:)

  read *, n, m, x, y
  allocate(xs(n), ys(m))
  read *, xs, ys
  if (maxval([xs, x]) < minval([ys, y])) then
     print *, 'No War'
  else
     print *, 'War'
  end if
end program abc110b
