from __future__ import annotations

import math
def       A	(    _lowercase		,  _lowercase		,  _lowercase		,  _lowercase		,  _lowercase						):

						if depth < 0:
												raise ValueError('''Depth cannot be less than 0'''						)

						if len(_lowercase						) == 0:
												raise ValueError('''Scores cannot be empty'''						)

						if depth == height:
												return scores[node_index]

						if is_max:
												return max(
												    minimax(depth + 1		,  node_index * 2		,  _lowercase		,  _lowercase		,  _lowercase						)		,  minimax(depth + 1		,  node_index * 2 + 1		,  _lowercase		,  _lowercase		,  _lowercase						)		,  )

						return min(
						    minimax(depth + 1		,  node_index * 2		,  _lowercase		,  _lowercase		,  _lowercase						)		,  minimax(depth + 1		,  node_index * 2 + 1		,  _lowercase		,  _lowercase		,  _lowercase						)		,  )
def       A	(    ):
						SCREAMING_SNAKE_CASE							:    Tuple							=							[90, 23, 6, 33, 21, 65, 123, 34_423]
						SCREAMING_SNAKE_CASE							:    str							=							math.log(len(_lowercase						)		,  2						)
						print('''Optimal value : '''		,  end=''''''						)
						print(minimax(0		,  0		,  _lowercase		,  _lowercase		,  _lowercase						)						)


if __name__ == "__main__":
					import doctest

					doctest.testmod()
					main()






from math import ceil
def       A	(    _lowercase = 1_001						):
						SCREAMING_SNAKE_CASE							:    Any							=							1

						for i in range(1		,  int(ceil(n / 2.0						)						)						):
												SCREAMING_SNAKE_CASE							:    Union[str, Any]							=							2 * i + 1
												SCREAMING_SNAKE_CASE							:    int							=							2 * i
												SCREAMING_SNAKE_CASE							:    List[str]							=							total + 4 * odd**2 - 6 * even

						return total


if __name__ == "__main__":
					import sys

					if len(sys.argv) == 1:
										print(solution())
					else:
										try:
															__UpperCamelCase		:       Dict									=     int(sys.argv[1])
															print(solution(n))
										except ValueError:
															print('Invalid entry - please enter a number')





