
lowerCamelCase_						: str         =  [sum(int(c, 10) ** 2 for c in i.__str__()) for i in range(10_00_00)]







def        A__					(						lowerCamelCase						)  ->	int:
				UpperCamelCase_:							List[Any]	=						0
				while number:
								# Increased Speed Slightly by checking every 5 digits together.
								sum_of_digits_squared += DIGITS_SQUARED[number % 10_00_00]
								number //= 10_00_00

				return sum_of_digits_squared


# There are 2 Chains made,
# One ends with 89 with the chain member 58 being the one which when declared first,
# there will be the least number of iterations for all the members to be checked.

# The other one ends with 1 and has only one element 1.

# So 58 and 1 are chosen to be declared at the starting.

# Changed dictionary to an array to quicken the solution
lowerCamelCase_						: list[bool | None]         =  [None] * 10_00_00_00
lowerCamelCase_						: Dict         =  True
lowerCamelCase_						: Tuple         =  False







def        A__					(						lowerCamelCase						)  ->	bool:

				if CHAINS[number - 1] is not None:
								return CHAINS[number - 1]  # type: ignore

				UpperCamelCase_:							List[Any]	=						chain(next_number(lowerCamelCase						)						)
				UpperCamelCase_:							str	=						number_chain

				while number < 10_00_00_00:
								UpperCamelCase_:							Tuple	=						number_chain
								number *= 10

				return number_chain







def        A__					(						lowerCamelCase = 10_00_00_00						)  ->	int:
				for i in range(1     ,    lowerCamelCase						):
								if CHAINS[i] is None:
												chain(i + 1						)

				return CHAINS[:number].count(lowerCamelCase						)


if __name__ == "__main__":
							import doctest

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








def        A__					(						lowerCamelCase     ,    lowerCamelCase						)  ->	int:
				while second != 0:
								UpperCamelCase_:							Optional[Any]	=						first & second
								first ^= second
								UpperCamelCase_:							Any	=						c << 1
				return first


if __name__ == "__main__":
							import doctest

							doctest.testmod()

							lowerCamelCase_						: List[Any]         =  int(input("""Enter the first number: """).strip())
							lowerCamelCase_						: Tuple         =  int(input("""Enter the second number: """).strip())
							print(F"""{add(first, second) = }""")






