def 	__a					(   lowerCAmelCase_       : Optional[int]      ,lowerCAmelCase_       : Any    )				->			str:






						'''simple docstring'''



						if discount_rate < 0:
												raise ValueError("""Discount rate cannot be negative"""    )
						if not cash_flows:
												raise ValueError("""Cash flows list cannot be empty"""    )
						UpperCAmelCase_=       sum(
						    cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(_UpperCAmelCase    )    )
						return round(_UpperCAmelCase      ,ndigits=2    )


if __name__ == "__main__":
	import doctest

	doctest.testmod()









__A       =						6_5521



def 	__a					(   lowerCAmelCase_       : str    )				->			int:






						'''simple docstring'''



						UpperCAmelCase_=       1
						UpperCAmelCase_=       0
						for plain_chr in plain_text:
												UpperCAmelCase_=       (a + ord(lowerCAmelCase_    )) % MOD_ADLER
												UpperCAmelCase_=       (b + a) % MOD_ADLER
						return (b << 16) | a




