





"""simple docstring"""


def      UpperCamelCase							(SCREAMING_SNAKE_CASE							,     SCREAMING_SNAKE_CASE							,     SCREAMING_SNAKE_CASE     ):
						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(SCREAMING_SNAKE_CASE							,     SCREAMING_SNAKE_CASE     ):
												raise Exception("""Years to repay must be an integer > 0"""     )

						# Yearly rate is divided by 12 to get monthly rate
						UpperCamelCase				:		Dict				   =			rate_per_annum / 12

						# Years to repay is multiplied by 12 to get number of payments as payment is monthly
						UpperCamelCase				:		List[Any]				   =			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()










"""simple docstring"""


import os

def      UpperCamelCase							():
						UpperCamelCase				:		Union[str, Any]				   =			os.path.join(os.path.dirname(SCREAMING_SNAKE_CASE     )							,     """num.txt"""     )
						with open(SCREAMING_SNAKE_CASE     ) as file_hand:
												return str(sum(int(SCREAMING_SNAKE_CASE     ) for line in file_hand     )     )[:10]


if __name__ == "__main__":
		print(solution())



