Make permutation into sub p