Imports System.Collections.Generic
Imports System.Console

Module Program
    Sub Main()
        Dim N As Integer = NextInt()
        Dim M As Integer = NextInt()
        Dim X As Integer = NextInt()
        Dim Y As Integer = NextInt()

        Dim A As Integer = Integer.MinValue
        For i As Integer = 0 To N - 1
            A = Math.Max(A, NextInt())
        Next

        Dim B As Integer = Integer.MaxValue
        For i As Integer = 0 To M - 1
            B = Math.Min(B, NextInt())
        Next

        If A < B And A < Y And X < B Then Write("No ")
        WriteLine("War")
    End Sub

    Function B2I(ok As Boolean) As Integer
        If ok Then Return 1
        Return 0
    End Function

    Function NextInt() As Integer
        Return CInt(NextString())
    End Function

    Function NextString() As String
        Dim result As New List(Of Char)
        Do
            Dim tmp As Integer = Read()
            If tmp < 0 Then Exit Do
            Dim nextChar As Char = Chr(tmp)

            If Not Char.IsWhiteSpace(nextChar) Then
                result.Add(nextChar)
            ElseIf nextChar <> vbCr Then
                Exit Do
            End If
        Loop
        Return New String(result.ToArray())
    End Function

End Module
