


'''simple docstring'''






def  _snake_case       (					A = 100	)						->   int:
							lowerCAmelCase__	       =     (n * (n + 1) // 2) ** 2
							lowerCAmelCase__	       =     n * (n + 1) * (2 * n + 1) // 6
							return sum_cubes - sum_squares


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



'''simple docstring'''






def  _snake_case       (					A = 10			,   A = 22	)						->   int:
							lowerCAmelCase__	       =     range(1			,   A	)
							lowerCAmelCase__	       =     range(1			,   A	)
							return sum(
							    1 for power in powers for base in bases if len(str(base**power	)	) == power	)


if __name__ == "__main__":
		print(f"""{solution(10, 22) = }""")