
def  a_	( __lowercase     :			int				)				->						str:
			_snake_case						=    1
			_snake_case						=    0
			_snake_case						=    1
			_snake_case						=    1
			_snake_case						=    3
			_snake_case						=    3
			_snake_case						=    limit
			_snake_case						=    0

			_snake_case						=    ''
			while counter != decimal + 1:
						if 4 * q + r - t < n * t:
									result += str(__lowercase				)
									if counter == 0:
												result += "."

									if decimal == counter:
												break

									counter += 1
									_snake_case						=    10 * (r - n * t)
									_snake_case						=    ((10 * (3 * q + r)) // t) - 10 * n
									q *= 10
									_snake_case						=    nr
						else:
									_snake_case						=    (2 * q + r) * l
									_snake_case						=    (q * (7 * k) + 2 + (r * l)) // (t * l)
									q *= k
									t *= l
									l += 2
									k += 1
									_snake_case						=    nn
									_snake_case						=    nr
			return result






def  a_	( )				->						None:
			print(f'''{calculate_pi(50				) = }'''				)
			import doctest

			doctest.testmod()


if __name__ == "__main__":
			main()

def  a_	( __lowercase     :			int				)				->						bool:
			_snake_case						=    9

			while num > 0:
						if num % 10 != digit:
									return False
						num //= 100
						digit -= 1

			return True






def  a_	( )				->						int:
			_snake_case						=    138_902_663

			while not is_square_form(num * num				):
						if num % 10 == 3:
									num -= 6  # (3 - 6) % 10 = 7
						else:
									num -= 4  # (7 - 4) % 10 = 3

			return num * 10


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