  It is well known that Rubik's cube has a set of group invariants. These
values do not change if any layer was rotated, but they can change in case if
some of the cubes were removed from the puzzle, mixed up and returned back. In
this paper, we generalize the puzzle to the case of an arbitrary dimension
after which we describe all the invariants.
