'''simple docstring'''

def __UpperCamelCase( _A       :					int = 10_00     ):
   '''simple docstring'''
   UpperCAmelCase__				:					Tuple 					=	3
   UpperCAmelCase__				:					List[str] 					=	0
   while a < n:
      if a % 3 == 0 or a % 5 == 0:
         result += a
      elif a % 15 == 0:
         result -= a
      a += 1
   return result


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





'''simple docstring'''

def __UpperCamelCase( _A       :					float	,      _A       :					list[float]     ):
   '''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__				:					str 					=	sum(
       cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(_A     )     )
   return round(_A	,      ndigits=2     )


if __name__ == "__main__":
  import doctest

  doctest.testmod()




