combining permutations

welcome to shbcf.ru