num = int(input( "Enter a number: " )) count = 1 while count < num: print(count) count = count + 1 while count >= 1: print(count) count = count - 1