more codeforces
fix perm