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

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

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



for i in range(X+1, Y+1):

  if(x[-1] < i <= y[0]):

    print("No War")

    break

else:

  print("War")
def ans():

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

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

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

  for i in range(X+1, Y+1):

    if(x[-1] < i <= y[0]):

      print("No War")

      break

  else:

    print("War")

ans()
N, M, X, Y = list(map(int, input().split()))
x = sorted(list(map(int, input().split())))
y = sorted(list(map(int, input().split())))
for i in range(X + 1, Y + 1):
    if x[-1] < i <= y[0]:
        print("No War")
        break
else:
    print("War")

def ans():
    N, M, X, Y = list(map(int, input().split()))
    x = sorted(list(map(int, input().split())))
    y = sorted(list(map(int, input().split())))
    for i in range(X + 1, Y + 1):
        if x[-1] < i <= y[0]:
            print("No War")
            break
    else:
        print("War")


ans()

-N, M, X, Y = list(map(int, input().split())) -x = sorted(list(map(int, input().split()))) -y = sorted(list(map(int, input().split()))) -for i in range(X + 1, Y + 1): -    if x[-1] < i <= y[0]: -        print("No War") -        break -else: -    print("War") +def ans(): +    N, M, X, Y = list(map(int, input().split())) +    x = sorted(list(map(int, input().split()))) +    y = sorted(list(map(int, input().split()))) +    for i in range(X + 1, Y + 1): +        if x[-1] < i <= y[0]: +            print("No War") +            break +    else: +        print("War") + + +ans()