Given a cube. On each edge of the cube, we write a number, either $1$ or $-1$. For each face of the cube, we multiply the four numbers on the edges of this face, and write the product on this face. Finally, we add all the eighteen numbers that we wrote down on the edges and face of the cube. What is the smallest possible sum that we can get?