



'''simple docstring'''


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


if __name__ == "__main__":
						import doctest

						doctest.testmod()







'''simple docstring'''


import os






def  __lowerCAmelCase ():
		_UpperCAmelCase		:       List[Any]								=      os.path.join(os.path.dirname(__lowerCAmelCase   )      , "num.txt"   )
		with open(__lowerCAmelCase   ) as file_hand:
				return str(sum(int(__lowerCAmelCase   ) for line in file_hand   )   )[:10]


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



