(= a(read)b(readline))(for k 1 a(for i 1(- len.b 1)(for j 1 a(pr:if(or(is k 1)(is k a)(is j 1)(is j a))(cut b i inc.i)" ")))(prn))