x,y=input().split()[2:];print(('No '*(max(list(map(int,input().split()+[x])))<min(list(map(int,input().split()+[y]))))+'War'))
i=lambda:list(map(int,input().split()));n,m,x,y=i();print(('No '*(max(list(i())+[x])<min(list(i())+[y]))+'War'))
x, y = input().split()[2:]
print(
    (
        "No "
        * (
            max(list(map(int, input().split() + [x])))
            < min(list(map(int, input().split() + [y])))
        )
        + "War"
    )
)

i = lambda: list(map(int, input().split()))
n, m, x, y = i()
print(("No " * (max(list(i()) + [x]) < min(list(i()) + [y])) + "War"))

-x, y = input().split()[2:] -print( -    ( -        "No " -        * ( -            max(list(map(int, input().split() + [x]))) -            < min(list(map(int, input().split() + [y]))) -        ) -        + "War" -    ) -) +i = lambda: list(map(int, input().split())) +n, m, x, y = i() +print(("No " * (max(list(i()) + [x]) < min(list(i()) + [y])) + "War"))