

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


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


def 	__a     (      A__			:  int       ):
    if not isinstance(A__			,  A__       ):
        raise ValueError("Input must be an integer"       )
    if input_num <= 0:
        raise ValueError("Input must be positive"       )
    return sum(
        divisor for divisor in range(1			,  input_num // 2 + 1       ) if input_num % divisor == 0       )


if __name__ == "__main__":
    import doctest

    doctest.testmod()