<?php
for ($bank=10000, $year = 0; $bank<=1000000; $bank= $c + $bank, $year++) {
$c= $bank * 0.1;
}
echo "$year\n";
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKCgoKZm9yICgkYmFuaz0xMDAwMCwgJHllYXIgPSAwOyAkYmFuazw9MTAwMDAwMDsgJGJhbms9ICRjICsgJGJhbmssICR5ZWFyKyspIHsKCSRjPSAkYmFuayAqIDAuMTsKICAgIAp9CmVjaG8gIiR5ZWFyXG4iOw==