

"""simple docstring"""


from typing import Any





class 					snake_case			:

				def __init__(			self							:       List[str])->     Any:



						'''simple docstring'''


						__lowerCAmelCase: Any					   =    []
						__lowerCAmelCase: Dict					   =    0

				def __str__(			self							:       int)->     List[Any]:



						'''simple docstring'''


						__lowerCAmelCase: str					   =    "<" + str(self.stack)[1:-1] + ">"
						return printed

				def 							lowercase_  (			self							:       List[str]  ,						UpperCamelCase__							:       Any)->     None:



						'''simple docstring'''


						self.stack.append(UpperCamelCase__)
						__lowerCAmelCase: Optional[Any]					   =    self.length + 1

				def 							lowercase_  (			self							:       Any)->     Any:



						'''simple docstring'''


						self.rotate(1)
						__lowerCAmelCase: int					   =    self.stack[self.length - 1]
						__lowerCAmelCase: str					   =    self.stack[:-1]
						self.rotate(self.length - 1)
						__lowerCAmelCase: Dict					   =    self.length - 1
						return dequeued

				def 							lowercase_  (			self							:       Tuple  ,						UpperCamelCase__							:       int)->     None:



						'''simple docstring'''


						for _ in range(UpperCamelCase__):
								__lowerCAmelCase: Optional[int]					   =    self.stack[0]
								__lowerCAmelCase: str					   =    self.stack[1:]
								self.put(UpperCamelCase__)
								__lowerCAmelCase: Dict					   =    self.length - 1

				def 							lowercase_  (			self							:       List[str])->     Any:



						'''simple docstring'''


						__lowerCAmelCase: Dict					   =    self.get()
						self.put(UpperCamelCase__)
						self.rotate(self.length - 1)
						return front

				def 							lowercase_  (			self							:       Tuple)->     int:



						'''simple docstring'''


						return self.length





"""simple docstring"""


def 					a__					(					__SCREAMING_SNAKE_CASE = 1_0_0_0				)			->			int:
		__lowerCAmelCase: int					   =    0
		__lowerCAmelCase: Optional[int]					   =    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() = }''')


