N, M, X, Y = list(map(int, input().split()))

x = list(map(int, input().split()))

y = list(map(int, input().split()))



ans = 'War'



for z in range(X+1, Y+1):

    if len(list([x for x in x if x < z])) == N and len(list([x for x in y if x >= z])) == M:

        ans = 'No War'

        break



print(ans)

N, M, X, Y = list(map(int, input().split()))

x = list(map(int, input().split()))

y = list(map(int, input().split()))



ans = 'War'



for z in range(X+1, Y+1):

    if max(x) < z and min(y) >= z:

        ans = 'No War'

        break



print(ans)

N, M, X, Y = list(map(int, input().split()))
x = list(map(int, input().split()))
y = list(map(int, input().split()))
ans = "War"
for z in range(X + 1, Y + 1):
    if (
        len(list([x for x in x if x < z])) == N
        and len(list([x for x in y if x >= z])) == M
    ):
        ans = "No War"
        break
print(ans)

N, M, X, Y = list(map(int, input().split()))
x = list(map(int, input().split()))
y = list(map(int, input().split()))
ans = "War"
for z in range(X + 1, Y + 1):
    if max(x) < z and min(y) >= z:
        ans = "No War"
        break
print(ans)

-    if ( -        len(list([x for x in x if x < z])) == N -        and len(list([x for x in y if x >= z])) == M -    ): +    if max(x) < z and min(y) >= z: