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

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

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



max_x = max(x)

min_y = min(y)

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

  if(max_x < i <= min_y):

    print("No War")

    break

else:

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

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

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



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

  if(x[-1] < i <= y[0]):

    print("No War")

    break

else:

  print("War")
N, M, X, Y = list(map(int, input().split()))
x = list(map(int, input().split()))
y = list(map(int, input().split()))
max_x = max(x)
min_y = min(y)
for i in range(X + 1, Y + 1):
    if max_x < i <= min_y:
        print("No War")
        break
else:
    print("War")

N, M, X, Y = list(map(int, input().split()))
x = sorted(list(map(int, input().split())))
y = sorted(list(map(int, input().split())))
for i in range(X + 1, Y + 1):
    if x[-1] < i <= y[0]:
        print("No War")
        break
else:
    print("War")

-x = list(map(int, input().split())) -y = list(map(int, input().split())) -max_x = max(x) -min_y = min(y) +x = sorted(list(map(int, input().split()))) +y = sorted(list(map(int, input().split()))) -    if max_x < i <= min_y: +    if x[-1] < i <= y[0]: