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