printN(0) :- !.
printN(N) :- N > M is N - 1, printN(M), writeln(N).
