
from __future__ import annotations

from math import ceil, floor, sqrt





def      lowerCamelCase_					(							lowerCamelCase__ = 2_0_0_0_0_0_0       ):
				lowerCamelCase_         =     [0]
				lowerCamelCase_         =     42

				for idx in range(1      ,					ceil(sqrt(target * 2       ) * 1.1       )       ):
								triangle_numbers.append(triangle_numbers[-1] + idx       )

				# we want this to be as close as possible to target
				lowerCamelCase_         =     0
				# the area corresponding to the grid that gives the product closest to target
				lowerCamelCase_         =     0
				# an estimate of b, using the quadratic formula
				lowerCamelCase_         =     42
				# the largest integer less than b_estimate
				lowerCamelCase_         =     42
				# the largest integer less than b_estimate
				lowerCamelCase_         =     42
				# the triangle number corresponding to b_floor
				lowerCamelCase_         =     42
				# the triangle number corresponding to b_ceil
				lowerCamelCase_         =     42

				for idx_a, triangle_a in enumerate(triangle_numbers[1:]      ,					1       ):
								lowerCamelCase_         =     (-1 + sqrt(1 + 8 * target / triangle_a       )) / 2
								lowerCamelCase_         =     floor(lowerCamelCase__       )
								lowerCamelCase_         =     ceil(lowerCamelCase__       )
								lowerCamelCase_         =     triangle_numbers[b_floor]
								lowerCamelCase_         =     triangle_numbers[b_ceil]

								if abs(target - triangle_b_first_guess * triangle_a       ) < abs(
								    target - best_product       ):
												lowerCamelCase_         =     triangle_b_first_guess * triangle_a
												lowerCamelCase_         =     idx_a * b_floor

								if abs(target - triangle_b_second_guess * triangle_a       ) < abs(
								    target - best_product       ):
												lowerCamelCase_         =     triangle_b_second_guess * triangle_a
												lowerCamelCase_         =     idx_a * b_ceil

				return area


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




import enum
import shutil
import sys


__A,		__A							=shutil.get_terminal_size()

__A							={'''UP''': '''A''', '''DOWN''': '''B''', '''RIGHT''': '''C''', '''LEFT''': '''D'''}




class        _SCREAMING_SNAKE_CASE	( enum.Enum		):
	lowerCAmelCase__   =					0
	lowerCAmelCase__   =					1





def      lowerCamelCase_					(							lowerCamelCase__      ,					lowerCamelCase__=""       ):
				sys.stdout.write(str(lowerCamelCase__       ) + end       )
				sys.stdout.flush()





def      lowerCamelCase_					(							lowerCamelCase__      ,					lowerCamelCase__      ,					lowerCamelCase__=""       ):
				forceWrite(F'\u001b[{color}m{content}\u001b[0m'      ,					lowerCamelCase__       )





def      lowerCamelCase_					(							):
				forceWrite("\r"       )





def      lowerCamelCase_					(							lowerCamelCase__      ,					lowerCamelCase__       ):
				forceWrite(F'\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}'       )





def      lowerCamelCase_					(							):
				forceWrite(" " * TERMINAL_WIDTH       )
				reset_cursor()





def      lowerCamelCase_					(							):
				reset_cursor()
				forceWrite("-" * TERMINAL_WIDTH       )


