Permutation calculation task. First release.