Decompose magic number