






"""simple docstring"""


def       snake_case  (A_				:float     ,      A_				:float     ,      A_				:int				):







  '''simple docstring'''

  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(A_     ,      A_				):
    raise Exception('Years to repay must be an integer > 0'				)

  # Yearly rate is divided by 12 to get monthly rate
  a					:      Optional[int]    =       rate_per_annum / 1_2

  # Years to repay is multiplied by 12 to get number of payments as payment is monthly
  a					:      Optional[Any]    =       years_to_repay * 1_2

  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()












"""simple docstring"""


def       snake_case  (A_				:list[int]     ,      A_				:str				):







  '''simple docstring'''

  a					:      Optional[int]    =       int(A_				)

  # Initialize Result
  a					:      int    =       []

  # Traverse through all denomination
  for denomination in reversed(A_				):
    # Find denominations
    while int(A_				) >= int(A_				):
      total_value -= int(A_				)
      answer.append(A_				)  # Append the "answers" array

  return answer


# Driver Code
if __name__ == "__main__":
   _UpperCamelCase    :   Dict   			=						[]
   _UpperCamelCase    :   str   			=						'0'

   if (
       input('Do you want to enter your denominations ? (yY/n): ').strip().lower()
       == "y"
   ):
      _UpperCamelCase    :   Dict   			=						int(input('Enter the number of denominations you want to add: ').strip())

      for i in range(0, n):
         denominations.append(int(input(f'''Denomination {i}: ''').strip()))
      _UpperCamelCase    :   Optional[int]   			=						input('Enter the change you want to make in Indian Currency: ').strip()
   else:
      # All denominations of Indian Currency if user does not enter
      _UpperCamelCase    :   Union[str, Any]   			=						[1, 2, 5, 10, 20, 50, 100, 500, 2000]
      _UpperCamelCase    :   Dict   			=						input('Enter the change you want to make: ').strip()

   if int(value) == 0 or int(value) < 0:
      print('The total value cannot be zero or negative.')

   else:
      print(f'''Following is minimal change for {value}: ''')
      _UpperCamelCase    :   Tuple   			=						find_minimum_change(denominations, value)
      # Print result
      for i in range(len(answer)):
         print(answer[i], end=' ')




