m:-prompt1(''),readln([N]),L is N-1,between(1,L,Y),(between(1,L,X),I is X*3,\+format('~t~*R~*|',[N,X*Y,I]);\+nl).