n, m, x, y = map(int, input().split())
x = sorted(list(map(int, input().split())) + [x])
y = sorted(list(map(int, input().split())) + [y])
if x[-1] < y[0]:
    print('No War')
else:
    print('War')

87284391edd958107dfcfc5fe6087098f0753f89
<mask token>

<mask token>
if x[-1] < y[0]:
    print('No War')
else:
    print('War')

n, m, x, y = map(int, input().split())
x = sorted(list(map(int, input().split())) + [x])
y = sorted(list(map(int, input().split())) + [y])
if x[-1] < y[0]:
    print('No War')
else:
    print('War')
