Go: package main
import (
	"fmt"
	"os"
	"strconv"
	"bufio"
	"math"
)

var sc = bufio.NewScanner(os.Stdin)

func main(){
	sc.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(ans)
}

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp+=tmp*0.05
	}
	tmp = Ceil(tmp, -4)
	return tmp
}

func Ceil(f float64, places int) float64{
	shift := math.Pow(10, float64(places))
	return math.Ceil(f * shift)/shift
}

func next()string{
	sc.Scan()
	return sc.Text()
}

func nextInt()int{
	a, _ := strconv.Atoi(next())
	return a
}

C++: #include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;

double calcDebt(double debt)
{
    debt = debt * 1.05;
    debt = ceil(debt / 1000) * 1000;
    return debt;
}

int main()
{
    int n;
    double debt = 100000;
    cin >> n;
    for(int c = 0; c < n; c++)
        debt = calcDebt(debt);
    cout << debt << endl;
    return EXIT_SUCCESS;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
  int n;
  cin>>n;
  double m = 100000;
  for(int i = 0; i < n; i++){
    m*=1.05;
    m/=1000;
    m=ceil(m);
    m*=1000;
  }
  cout<<m<<endl;
}

C++: #include<iostream>
using namespace std;

int main()
{
    int n, d = 100000;
    cin >> n;
    for(; n-- ;)
    {
       if((d + d*5/100)%1000 == 0) d = d + d*5/100;
       else
       {
            d = d + d*5/100 + (1000-(d + d*5/100)%1000);
       }
    }
    cout << d << endl;
}

C++: #include <iostream>
#include <queue>
#include <vector>
#include <math.h>
#include <algorithm>
#include <iomanip>
#include <string>
using namespace std;

int main(){
	int n;
	long long int result = 100000;
	cin >> n;
	for (; n > 0; --n) {
		result += result / 20 + 999;
		result -= result % 1000;
	}
	cout << result << endl;
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>

using namespace std;

int main()
{
	int n; cin >> n;
	double ans = 100;
	for(int i=0; i<n; i++){
		ans = ceil(ans * 1.05);
	}
	cout << (int)(100*ans) << endl;

	return 0;
}

C++: #include <iostream>
using namespace std ;

int main()
{
	int get ;
	int debt = 100000 ;
	int num[4] ;

	cin >> get ;
	for( int i = 0 ; i < get ; i ++ )
	{
		debt *= 1.05 ;
		int tmp = debt ;

		for( int j = 0 ; j < 4 ; j ++ )
		{
			num[j] = (tmp % 10) ;
			tmp /= 10 ;
		}

		if( num[0] != 0 || num[1] != 0 || num[2] != 0 )
		{
			debt -= (num[0] + num[1]*10 + num[2]*100) ;
			debt += 1000 ;
		}
	}

	cout << debt << endl ;
	return 0 ;
}

C++: #include <iostream>

using namespace std;

int main(){
  int i;
  int money = 100000;
  cin >> i;
  for(; i > 0; i--){
    money += money*0.05;
  }

  cout << money << endl;
  int cutoff = 10000;

  double dif = ((int)money/cutoff)*cutoff;
  cout << dif << endl;
  if(money - dif > 0){
    money = dif + cutoff;
  }
  cout << money << endl;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
typedef long long ll;
int main()
{
	int n;
	cin>>n;
	ll sum=100000;
	double t;
	for(int i=1;i<=n;i++)
	{
		t=sum*0.05;
		t=t/1000;
		t=ceil(t);
		t=t*1000;
		sum=sum+t;
	}
	cout<<sum<<endl;
	return 0;
}

C++: #include<stdio.h>

int main() {
	int n;
	double debt=100000;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		debt = debt + debt*0.05;
		if ((int)debt % 1000 > 0) {
			debt = debt - (int)debt % 1000;
			debt += 1000;
		}
	}
	printf("%d\n", (int)debt);

	return 0;
}

C++: #include <iostream>

using namespace std;

int main(){

	int n;
	cin >> n;
	int debt = 100000;
	for(int i = 0; i < n; i++){
		debt += debt/20;
		int lower = debt % 1000;
		debt -= lower;
		if(lower != 0)
			debt += 1000;
	}

	return 0;
}

C++: #include <stdio.h>

int main(){
  int money=100000;
  int remain;
  int weeks;
  float temp;
  int i;

  scanf("%d", &weeks);
  for(i=0; i<weeks; i++){
    temp=(float)money*1.05f;
    money=(int)temp;
    remain=money%1000;
    money+=1000-remain;
  }
  printf("%d", money);

  return 0;
}

C++: #include <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
#include<iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
typedef int long long ll;

using namespace std;
int main(){
    
    int n;
    cin>>n;
    int ans=100000;
    rep(i,n){
        ans=ans*1.05;
        if(ans%1000>0){
            ans=ans/1000;
            ans++;
            ans=ans*1000;
        }
    }
    
    
    cout<<ans<<endl;
    
    return 0;
}

C++: #include <iostream>

int main() {
	int saimu = 100000;
	static const int riritsu = 5;	/* percent */
	static const int roundUnit = 1000;

	int n;
	std::cin >> n;

	for (int i = 0; i < n; ++i) {
		saimu += saimu / 100 * riritsu;
		saimu = ((saimu + roundUnit - 1) / roundUnit) * roundUnit;
	}

	std::cout << saimu << '\n';

	return 0;
}

C++: #include <iostream>
using namespace std;

int main(){
    int week = 0;
    cin >> week;
    float a = 100000;
    for(int i = week;i--;){
        a *= 1.05;
    }
    a = (int)(a * 0.0001 + 0.9) * 10000;
    cout << a;
    return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <string>
#define rep(x,to) for(x=0;x<to;x++)
#define rep2(x,from,to) for(x=from;x<to;x++)

using namespace std;


int main(void){

int n,i,s,kin=100000;
double wkin;
	cin >> n;
	rep(i,n){
		wkin = kin * 1.05;
		s=0;
		if((wkin /1000) > (int)(wkin /1000)) s = 1;
		kin = ((int)(wkin /1000) + s) * 1000;
	}
	cout << kin << endl;
	return 0;
}

C++: #include <iostream>
using namespace std;

int main(){
	int n, money = 100000;

	cin >> n;

	for ( int i = 0; i < n; ++i ){
		money *= 1.05;
		if ( money % 1000 ){
			money = ( money / 1000 + 1 ) * 1000;
		}
	}

	cout << money << endl;

	return 0;
}

C++: #include<iostream>
#include <cstdio>
#include <algorithm>

using namespace std;

int main() {

	int N, i, sum=100000;

	cin >> N;

	for (i = 0; i < N; i++) {
		sum *= 1.05;
		if(sum -(sum/1000)*1000 != 0)
			sum = ((sum + 1000) / 1000) * 1000;
	}

	cout << sum << endl;

	return 0;

}

C++: #include <iostream>
using namespace std;

int main()
{
    int a;
    int debt=100000;
    cin >> a;
    for (int i=0; i<a; i++)
    {
	debt+=debt/20;
	debt=(debt+999)/1000*1000;
    }
    cout << debt << endl;
    return 0;
}

C++: #include <iostream>
using namespace std;
 
int main(){
    int money = 100000;
    int n;
 
    cin >> n;
    for(int i = 0; i< n; i++){
        money *= 1.05;
        if(money % 1000 != 0){
            money += 1000 - (money % 1000);
        }
    }
    cout << money << endl;
}

C++: #include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int main() {
  int n;
  
  while(cin >> n) {
    int m = 100000;
    while(n--) {
      m = ceil(m*1.05/1000)*1000;
    }
    cout << m << endl;
  }
  return 0;
}

C++: #include <cstdio>

using namespace std;
 
int main() {
	int n;
	long base = 100000;
	float interest = 0.05f;
	long roundNum;

	scanf("%d", &n);
	
	while (n--) {
	    base = base * (1 + interest);
	    roundNum = base % 1000;
	    base += (1000 - roundNum);
	}
	
	printf("%ld\n", base);
	
	return 0;
}

C++: #include<iostream>
#include<iomanip>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<cmath>
#include<queue>
#include<stack>
#include<functional>
#include<string>
#include<cstring>
#include <sstream>
using namespace std;
int main(void){
    int n,i,ans,r_up;
    cin >> n;
    ans = 100000;
    for(i = 0; i < n; i++){
        ans += ans * 0.05;
        r_up = ans % 1000;
        if(r_up != 0){
            ans += (1000 - r_up);
        }
    }
    cout << ans << endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char *argv[]) {
  int n;
  double debt = 100000;

  cin >> n;
  for (int i = 0; i < n; i++) {
    debt *= 1.05;
    if ((int)debt % 1000)
      debt = ((int)debt / 1000 + 1) * 1000;
    else
      debt = ((int)debt / 1000) * 1000;
  }
  cout << (int)debt << endl;
  return 0;
}