n,m,x,y = list(map(int,input().split()))



x1 = max([int(i) for i in input().split()]) + 1

y1 = min([int(i) for i in input().split()])



if x1 <= y1 and x1 <= y and y1 > x:

    print('No War')

else:

    print('War')
n,m,x,y = list(map(int,input().split()))



x1 = max(list(map(int,input().split()))) + 1

y1 = min(list(map(int,input().split())))



if x1 <= y1 and x1 <= y and y1 > x:

    print('No War')

else:

    print('War')
n, m, x, y = list(map(int, input().split()))
x1 = max([int(i) for i in input().split()]) + 1
y1 = min([int(i) for i in input().split()])
if x1 <= y1 and x1 <= y and y1 > x:
    print("No War")
else:
    print("War")

n, m, x, y = list(map(int, input().split()))
x1 = max(list(map(int, input().split()))) + 1
y1 = min(list(map(int, input().split())))
if x1 <= y1 and x1 <= y and y1 > x:
    print("No War")
else:
    print("War")

-x1 = max([int(i) for i in input().split()]) + 1 -y1 = min([int(i) for i in input().split()]) +x1 = max(list(map(int, input().split()))) + 1 +y1 = min(list(map(int, input().split())))