import math
Oblance=float(raw_input("Enter the outstanding blance on your credit card?"))
Irate=float(raw_input("Enter the annual credit card interest rate as a decimal?"))
Mprate=float(raw_input("Enter the minimum monthly payment rate as a decimal?"))
tbalance=Oblance
totalpay=0
for i in range(1,13):
mmp=Oblance*Mprate
ip=Irate/12*Oblance
pp=mmp-ip
Rblance=Oblance-pp
Oblance=Rblance
totalpay+=mmp
print "month " + str(i)
print "Minimum monthly payment: "+ str(round(mmp,2))
print "Principle balance: "+str(round(pp,2))
print "Remaining blance: "+str(round(Rblance,2))
print "RESULT"
print "Total amount paid: " + str(round(totalpay,2))
print "Remaining blance: " + str(round(Rblance,2))