$N^3$ unit cubes are made into beads by drilling a hole through them along a diagonal, put on a string and binded. Thus the cubes can move freely in space as long as the vertices of two neighboring cubes (including the first and last one) are touching. For which $N$ is it possible to build a cube of edge $N$ using these cubes?