answer = 0
for i = 1,N do
if i ~= myself then
bit = myself==N and i-1 or myself-1
answer = answer ~ colors[i]>>bit & 1
end
end
X = raise(answer==1)
answer = 0
for i = 1,N do
if i ~= myself then
X[i] = X[i] and 1 or 0
for j = 1,N do
if j ~= i and j ~= myself then
bit = i==N and j-1 or i-1
X[i] = X[i] ~ colors[j]>>bit & 1
end
end
if X[i] == 1 then
bit = i == N and myself - 1 or i - 1
answer = answer ~ 1<