object Main extends App{
  val sc = new java.util.Scanner(System.in)
  val N,M,X,Y= sc.nextInt
  val f = (N:Int,X:Int)=>List.fill(N)(sc.nextInt):+X
  val ans = if(f(N,X).max < f(M,Y).min){"No War"}else{"War"}
  println(ans)
}

