(*z,X,Y),x,y=eval('map(int,input().split()),'*3);print(('No War'[3*(max(X,*x)>=min(Y,*y)):]))
(*_,X,Y),x,y=eval('map(int,input().split()),'*3);print(('No'*(max(X,*x)<min(Y,*y)),'War'))
(*z, X, Y), x, y = eval("map(int,input().split())," * 3)
print(("No War"[3 * (max(X, *x) >= min(Y, *y)) :]))

(*_, X, Y), x, y = eval("map(int,input().split())," * 3)
print(("No" * (max(X, *x) < min(Y, *y)), "War"))

-(*z, X, Y), x, y = eval("map(int,input().split())," * 3) -print(("No War"[3 * (max(X, *x) >= min(Y, *y)) :])) +(*_, X, Y), x, y = eval("map(int,input().split())," * 3) +print(("No" * (max(X, *x) < min(Y, *y)), "War"))