initialBalance = balance = 3926
annualInterestRate = 0.18
j = 1
while balance > 0:
    balance = initialBalance
    for i in range(12):
        monthlyPayment = 10 * j
        Ub = balance - monthlyPayment
        balance = Ub*(1 + annualInterestRate/12.0)
    j = j + 1
print("j= ") + str(j)
print("Lowest payment: ") + str(monthlyPayment)
print("Remaining balance: ") + str(round(balance,2))
