



'''simple docstring'''


def   SCREAMING_SNAKE_CASE					(					lowercase_     :   list[int]			,	lowercase_     :   list[int]    ):
						lowercase   =				len(lowercase_    )
						print("""The following activities are selected:"""    )

						# The first activity is always selected
						lowercase   =				0
						print(lowercase_			,	end=""","""    )

						# Consider rest of the activities
						for j in range(lowercase_    ):
												# If this activity has start time greater than
												# or equal to the finish time of previously
												# selected activity, then select it
												if start[j] >= finish[i]:
																		print(lowercase_			,	end=""","""    )
																		lowercase   =				j


if __name__ == "__main__":
						import doctest

						doctest.testmod()

						lowercase_   :					List[Any]        =     [1, 3, 0, 5, 8, 5]
						lowercase_   :					Optional[int]        =     [2, 4, 6, 7, 9, 9]
						print_max_activities(start, finish)





'''simple docstring'''



def       snake_case   (	snake_case      : int					,		snake_case      : int					,		snake_case      : int			) ->  int:


    """simple docstring"""


    if exponent == 1:
        return base
    if exponent % 2 == 0:
        lowerCAmelCase 						=							_modexpt(snake_case					,		exponent // 2					,		snake_case			) % modulo_value
        return (x * x) % modulo_value
    else:
        return (base * _modexpt(snake_case					,		exponent - 1					,		snake_case			)) % modulo_value


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


    """simple docstring"""


    lowerCAmelCase 						=							base
    for _ in range(1					,		snake_case			):
        lowerCAmelCase 						=							_modexpt(snake_case					,		snake_case					,		10**digits			)

    return result


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





