




def  SCREAMING_SNAKE_CASE     (	__UpperCamelCase      :						float	,					__UpperCamelCase      :						float	,					__UpperCamelCase      :						int				)  ->							float:
    if principal <= 0:
        raise Exception('''Principal borrowed must be > 0'''				)
    if rate_per_annum < 0:
        raise Exception('''Rate of interest must be >= 0'''				)
    if years_to_repay <= 0 or not isinstance(__UpperCamelCase	,					__UpperCamelCase				):
        raise Exception('''Years to repay must be an integer > 0'''				)

    # Yearly rate is divided by 12 to get monthly rate
    UpperCAmelCase_										=					rate_per_annum / 12

    # Years to repay is multiplied by 12 to get number of payments as payment is monthly
    UpperCAmelCase_										=					years_to_repay * 12

    return (
        principal
        * rate_per_month
        * (1 + rate_per_month) ** number_of_payments
        / ((1 + rate_per_month) ** number_of_payments - 1)
    )


if __name__ == "__main__":
 import doctest

 doctest.testmod()












def  SCREAMING_SNAKE_CASE     (	__UpperCamelCase      :						Optional[Any]				)  ->							Union[str, Any]:
    UpperCAmelCase_										=					len(__UpperCamelCase				)
    while cur > 1:
        # Find the maximum number in arr
        UpperCAmelCase_										=					arr.index(max(arr[0:cur]				)				)
        # Reverse from 0 to mi
        UpperCAmelCase_										=					arr[mi::-1] + arr[mi + 1 : len(__UpperCamelCase				)]
        # Reverse whole list
        UpperCAmelCase_										=					arr[cur - 1 :: -1] + arr[cur : len(__UpperCamelCase				)]
        cur -= 1
    return arr


if __name__ == "__main__":
 _lowerCamelCase      			=						input('Enter numbers separated by a comma:\n').strip()
 _lowerCamelCase      			=						[int(item) for item in user_input.split(',')]
 print(pancake_sort(unsorted))





