Go: package main

import (
	"fmt"
	"os"
	"bufio"
	"strconv"
	"math"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		n, _ := strconv.Atoi(scanner.Text())
		debt := float64(100000)
		for i:=1; i<=n; i++ {
			debt = debt*1.05
			debt = math.Ceil(debt*0.001) * 1000
		}		
		fmt.Println(int(debt))
	}
}

C++: #include<iostream>
using namespace std;
int main(){
int n,ans=100000;
cin>>n;
while(int i=0;i<n;i++){
ans=ans*1.05;
if(ans%1000)ans=(ans\1000)*1000+1000;
}
cout<<ans<<endl;
return 0;
}

C++: #include <iostream>

using namespace std;

int main(void)
{
	int n;
	cin>>n;

	int money=100000;
	for(int i=0; i<n; i++){
		
		money = money*1.05;

		int amari;

		amari = money%1000;

		if(amari>0){
			money += amari = 1000-amari;
		}
	}
	cout<<money<<endl;
}