def _lowercase	(      )					->       int:





       """simple docstring"""


       return [
           a * b * (1000 - a - b)
           for a in range(1							,    999						)
           for b in range(lowerCamelCase__							,    999						)
           if (a * a + b * b == (1000 - a - b) ** 2)
       ][0]


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







'''simple docstring'''




def _lowercase	(      lowerCamelCase__							,    lowerCamelCase__						)					->       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  :				Tuple       				=		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()






