print number between 1 and N