
'''simple docstring'''

def   A     (      UpperCamelCase_					:     int = 10_00      )					->       int:







			'''simple docstring'''



			lowerCAmelCase__								=							0
			lowerCAmelCase__								=							0
			while 1:
						num += 3
						if num >= n:
									break
						total += num
						num += 2
						if num >= n:
									break
						total += num
						num += 1
						if num >= n:
									break
						total += num
						num += 3
						if num >= n:
									break
						total += num
						num += 1
						if num >= n:
									break
						total += num
						num += 2
						if num >= n:
									break
						total += num
						num += 3
						if num >= n:
									break
						total += num
			return total


if __name__ == "__main__":
		print(F"{solution() = }")







'''simple docstring'''

from __future__ import annotations







def   A     (      UpperCamelCase_					:     int      )					->       list[int]:







			'''simple docstring'''



			assert (
			    isinstance(UpperCamelCase_						,	UpperCamelCase_      ) and mask > 0
			), F"""mask needs to be positive integer, your input {mask}"""
			lowerCAmelCase__								=							[]
			lowerCAmelCase__								=							mask

			while submask:
						all_submasks.append(UpperCamelCase_      )
						lowerCAmelCase__								=							(submask - 1) & mask

			return all_submasks


if __name__ == "__main__":
		import doctest

		doctest.testmod()





