n,m,a,b = list(map(int, input().split()))

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

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

x = max(x)

y = min(y)

for z in range(x+1,y+1):

    if a < z and z <= b:

        print("No War")

        quit()

print("War")
#!/usr/bin/python

# -*- coding: utf-8 -*-



s = input()

n, m, x, y = [int(x) for x in s.split()]

xx = [int(a) for a in input().split()]

yy = [int(a) for a in input().split()]

xx = sorted(xx)

yy = sorted(yy)



if xx[-1] >= y or yy[0] <= x or xx[-1] >= yy[0]:

    print('War')

else:

    print('No War')
n, m, a, b = list(map(int, input().split()))
x = list(map(int, input().split()))
y = list(map(int, input().split()))
x = max(x)
y = min(y)
for z in range(x + 1, y + 1):
    if a < z and z <= b:
        print("No War")
        quit()
print("War")

#!/usr/bin/python
# -*- coding: utf-8 -*-
s = input()
n, m, x, y = [int(x) for x in s.split()]
xx = [int(a) for a in input().split()]
yy = [int(a) for a in input().split()]
xx = sorted(xx)
yy = sorted(yy)
if xx[-1] >= y or yy[0] <= x or xx[-1] >= yy[0]:
    print("War")
else:
    print("No War")

-n, m, a, b = list(map(int, input().split())) -x = list(map(int, input().split())) -y = list(map(int, input().split())) -x = max(x) -y = min(y) -for z in range(x + 1, y + 1): -    if a < z and z <= b: -        print("No War") -        quit() -print("War") +#!/usr/bin/python +# -*- coding: utf-8 -*- +s = input() +n, m, x, y = [int(x) for x in s.split()] +xx = [int(a) for a in input().split()] +yy = [int(a) for a in input().split()] +xx = sorted(xx) +yy = sorted(yy) +if xx[-1] >= y or yy[0] <= x or xx[-1] >= yy[0]: +    print("War") +else: +    print("No War")