il = lambda: list(map(int, input().split()))

ils = lambda n, s="int(input())": [eval(s) for _ in range(n)]



n, m, x, y = il()

xs = il()

ys = il()

a = max(xs)

b = min(ys)

if x < a and b <= y and a < b:

    print("No War")

else:

    print("War")
from sys import stdin

il = lambda: list(map(int, input().split()))

IL = lambda: list(map(int, stdin.readline().rstrip().split()))

ils = lambda n, s="int(input())": [eval(s) for _ in range(n)]



n, m, x, y = IL()

xs = IL()

ys = IL()

a = max(xs)

b = min(ys)

if x < a and b <= y and a < b:

    print("No War")

else:

    print("War")
il = lambda: list(map(int, input().split()))
ils = lambda n, s="int(input())": [eval(s) for _ in range(n)]
n, m, x, y = il()
xs = il()
ys = il()
a = max(xs)
b = min(ys)
if x < a and b <= y and a < b:
    print("No War")
else:
    print("War")

from sys import stdin

il = lambda: list(map(int, input().split()))
IL = lambda: list(map(int, stdin.readline().rstrip().split()))
ils = lambda n, s="int(input())": [eval(s) for _ in range(n)]
n, m, x, y = IL()
xs = IL()
ys = IL()
a = max(xs)
b = min(ys)
if x < a and b <= y and a < b:
    print("No War")
else:
    print("War")

+from sys import stdin + +IL = lambda: list(map(int, stdin.readline().rstrip().split())) -n, m, x, y = il() -xs = il() -ys = il() +n, m, x, y = IL() +xs = IL() +ys = IL()