import numpy as np

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

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

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



if x > y:

    print("War")

else:

    zl = np.arange(x+1, y+1)

    for z in zl:

        if (max(xl) < z) & (z <= min(yl)):

            print("No War")

            break

    else:

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

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

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

xl.append(x)

yl.append(y)



if max(xl) < min(yl):

    print("No War")

else:

    print("War")
import numpy as np

n, m, x, y = list(map(int, input().split()))
xl = [int(i) for i in input().split()]
yl = [int(i) for i in input().split()]
if x > y:
    print("War")
else:
    zl = np.arange(x + 1, y + 1)
    for z in zl:
        if (max(xl) < z) & (z <= min(yl)):
            print("No War")
            break
    else:
        print("War")

n, m, x, y = list(map(int, input().split()))
xl = [int(i) for i in input().split()]
yl = [int(i) for i in input().split()]
xl.append(x)
yl.append(y)
if max(xl) < min(yl):
    print("No War")
else:
    print("War")

-import numpy as np - -if x > y: +xl.append(x) +yl.append(y) +if max(xl) < min(yl): +    print("No War") +else: -else: -    zl = np.arange(x + 1, y + 1) -    for z in zl: -        if (max(xl) < z) & (z <= min(yl)): -            print("No War") -            break -    else: -        print("War")