come si fa 1000 x 111 ?

0 0 0 1 1 1 1 x = 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 1 1
x