n,m,X,Y = list(map(int,input().split()))

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

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

if X<x<y<=Y:print('No War')

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

x_max = sorted(list(map(int,input().split())))[-1]

y_min = sorted(list(map(int,input().split())))[0]



if x<=x_max<y_min<=y:

    print('No War')

else:

    print('War')
n, m, X, Y = list(map(int, input().split()))
x = max(list(map(int, input().split())))
y = min(list(map(int, input().split())))
if X < x < y <= Y:
    print("No War")
else:
    print("War")

n, m, x, y = list(map(int, input().split()))
x_max = sorted(list(map(int, input().split())))[-1]
y_min = sorted(list(map(int, input().split())))[0]
if x <= x_max < y_min <= y:
    print("No War")
else:
    print("War")

-n, m, X, Y = list(map(int, input().split())) -x = max(list(map(int, input().split()))) -y = min(list(map(int, input().split()))) -if X < x < y <= Y: +n, m, x, y = list(map(int, input().split())) +x_max = sorted(list(map(int, input().split())))[-1] +y_min = sorted(list(map(int, input().split())))[0] +if x <= x_max < y_min <= y: