countdown(N) :-
write(N),
write(N-1).