N = int(input()) D = list(map(int, input().split())) mask = 0 for i in range(N): if D[i] < 0: mask = mask | (1<