




"""simple docstring"""





def 					_UpperCamelCase    (			)			->			List[str]:


			"""simple docstring"""
			__UpperCAmelCase	: Any		=					[]
			__UpperCAmelCase	: int		=					1

			while len(UpperCamelCase							) < 1e6:
						constant.append(str(UpperCamelCase							)							)
						i += 1

			__UpperCAmelCase	: str		=					"".join(UpperCamelCase							)

			return (
			    int(constant[0]							)
			    * int(constant[9]							)
			    * int(constant[99]							)
			    * int(constant[999]							)
			    * int(constant[9999]							)
			    * int(constant[9_9999]							)
			    * int(constant[99_9999]							)
			)


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








"""simple docstring"""





def 					_UpperCamelCase    (			UpperCamelCase				,       UpperCamelCase				,       UpperCamelCase							)			->			int:


			"""simple docstring"""

			if exponent == 1:
						return base
			if exponent % 2 == 0:
						__UpperCAmelCase	: Union[str, Any]		=					_modexpt(UpperCamelCase				,       exponent // 2				,       UpperCamelCase							) % modulo_value
						return (x * x) % modulo_value
			else:
						return (base * _modexpt(UpperCamelCase				,       exponent - 1				,       UpperCamelCase							)) % modulo_value

def 					_UpperCamelCase    (			UpperCamelCase = 1777				,       UpperCamelCase = 1855				,       UpperCamelCase = 8							)			->			int:


			"""simple docstring"""
			__UpperCAmelCase	: Optional[int]		=					base
			for _ in range(1				,       UpperCamelCase							):
						__UpperCAmelCase	: str		=					_modexpt(UpperCamelCase				,       UpperCamelCase				,       10**digits							)

			return result


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


