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

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

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



x=max(X)

y=min(Y)



if x<y and A[2]<A[3] and A[2]<y and x<A[3]:

    print("No War")

else:

    print("War")

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

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

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



x=x+[X]

y=y+[Y]



if max(x)<min(y):

    print("No War")

else:

    print("War")
A = list(map(int, input().split()))
X = list(map(int, input().split()))
Y = list(map(int, input().split()))
x = max(X)
y = min(Y)
if x < y and A[2] < A[3] and A[2] < y and x < A[3]:
    print("No War")
else:
    print("War")

N, M, X, Y = list(map(int, input().split()))
x = list(map(int, input().split()))
y = list(map(int, input().split()))
x = x + [X]
y = y + [Y]
if max(x) < min(y):
    print("No War")
else:
    print("War")

-A = list(map(int, input().split())) -X = list(map(int, input().split())) -Y = list(map(int, input().split())) -x = max(X) -y = min(Y) -if x < y and A[2] < A[3] and A[2] < y and x < A[3]: +N, M, X, Y = list(map(int, input().split())) +x = list(map(int, input().split())) +y = list(map(int, input().split())) +x = x + [X] +y = y + [Y] +if max(x) < min(y):