





import decimal





def lowerCAmelCase__()    ->				int:







	'''simple docstring'''







	lowerCamelCase__        =		0
	lowerCamelCase__        =		decimal.Context(prec=105							)
	for i in range(2	,100							):
		lowerCamelCase__        =		decimal.Decimal(__snake_case							)
		lowerCamelCase__        =		number.sqrt(__snake_case							)
		if len(str(__snake_case							)							) > 1:
			answer += int(str(__snake_case							)[0]							)
			lowerCamelCase__        =		str(__snake_case							)[2:101]
			answer += sum(int(__snake_case							) for x in sqrt_number_str							)
	return answer


if __name__ == "__main__":
			import doctest

			doctest.testmod()
			print(f"""{solution() = }""")










import os





def lowerCAmelCase__()    ->				int:







	'''simple docstring'''







	lowerCamelCase__        =		os.path.dirname(os.path.realpath(__snake_case							)							)
	lowerCamelCase__        =		os.path.join(__snake_case	,'''triangle.txt'''							)

	with open(__snake_case							) as in_file:
		lowerCamelCase__        =		[[int(__snake_case							) for i in line.split()] for line in in_file]

	while len(__snake_case							) != 1:
		lowerCamelCase__        =		triangle.pop()
		lowerCamelCase__        =		triangle[-1]
		for j in range(len(__snake_case							) - 1							):
			curr_row[j] += max(last_row[j]	,last_row[j + 1]							)
	return triangle[0][0]


if __name__ == "__main__":
			print(solution())



