importPackage(java.io);
importPackage(java.lang);
// your code goes here
var year=2020, oldMoney = 0, interest = 0, moneyAdded = 200000, total=0, years=12, rate = 0.08;
for(let i=0;i<=years;i++)
{
interest = oldMoney*rate;
total += (interest+moneyAdded);
print('1 jan '+(year+i)+' oldMoney='+oldMoney+' interest='+interest+' total='+total);
oldMoney = total;
}
aW1wb3J0UGFja2FnZShqYXZhLmlvKTsKaW1wb3J0UGFja2FnZShqYXZhLmxhbmcpOwoKLy8geW91ciBjb2RlIGdvZXMgaGVyZQp2YXIgeWVhcj0yMDIwLCBvbGRNb25leSA9IDAsIGludGVyZXN0ID0gMCwgbW9uZXlBZGRlZCA9IDIwMDAwMCwgdG90YWw9MCwgeWVhcnM9MTIsIHJhdGUgPSAwLjA4Owpmb3IobGV0IGk9MDtpPD15ZWFycztpKyspCnsKCWludGVyZXN0ID0gb2xkTW9uZXkqcmF0ZTsKCXRvdGFsICs9IChpbnRlcmVzdCttb25leUFkZGVkKTsKCXByaW50KCcxIGphbiAnKyh5ZWFyK2kpKycgb2xkTW9uZXk9JytvbGRNb25leSsnIGludGVyZXN0PScraW50ZXJlc3QrJyB0b3RhbD0nK3RvdGFsKTsKCW9sZE1vbmV5ID0gdG90YWw7Cn0=