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>
#include <queue>
#include <stack>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <string>
using namespace std;

long int money = 100000;
int s = 100000;
int a[124],b[124];

int main(){
	int n;
	int tmp;
	cin>>n;
	//while(n!=0){
		money = 100000;
	for(int i=0;i<n;i++){
		money*=1.05;
		//if(i==n-1) cout << "\nbefore  \n" << money <<"\nafter"<<endl;
		
		money += money % 1000 != 0? 1000:0;
		money-=money%1000;
		b[i+1] = money;
		//if(i==n-1)	cout << money << endl;
	}
		cout<<b[n]<<endl;
		
		
 
    
    //scanf("%d",&n);
 
 
    for(int i=0;i<n;i++){
        if(int(s*1.05)%1000==0){
            s=int(s*1.05);
        }else{
            s= int(s*1.05) + (1000- int(s*1.05) % 1000);
        }
    	a[i+1] = s;
    }
    //printf("%d\n",s);
	
		for(int i=0;i<n;i++)
		if(a[i+1]!=b[i+1]){
		}
			//cout<<i+1<<" a = "<<a[i+1]<<" b = "<<b[i+1]<<endl;
	//cout << money << endl;
		//cin >> n;
	//}
	return 0;
}

C++: #include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<functional>
#include<vector>
#include<math.h>
#define L(_i,_N) for(int _i=0;_i<_N;_i++)
#define C(_Dis) cout<<_Dis<<endl;

using namespace std;

typedef long long int lli;

int main() {
	int Loan = 100000;
	int n;
	cin >> n;
	for (int i = 0; i < n; i++) {
		Loan *= 1.05;
		if (Loan % 1000 != 0) {
			Loan -= Loan % 1000;
			Loan += 1000;
		}
	}
	C(Loan);
	return 0;
}

C++: #include <stdio.h>
int main(void){
    int n,m=100000;
    scanf("%d",&n);
    while(n--)m+=m*.05,m+=(m%1000?1000-m%1000:0);
    printf("%d\n",m);
    return 0;
}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
 int n;
 cin >> n;
 int ans = 100000;;
 rep(i,n){
  int x = ans/20;
  ans += x;
  if(ans%1000) ans += (1000-(ans%1000));
 }
 cout << ans << endl;
 return 0;
}

C++: #include <iostream>

using namespace std;

void solve()
{
	int N;
	cin >> N;
	int sum = 100000;
	for(int i = 0; i < N; ++i)
	{
		sum *= 1.05;
		if(sum % 1000 != 0)
		{
			sum += 1000 - (sum % 1000); 
		}
	}
	cout << sum << endl;
}

int main()
{
	solve();
	return(0);
}

C++: #include<iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <math.h>
using namespace std;
#include <sstream>
typedef long double ld;
int a;
int main(){
cin>>a;
 double c=100000.0;
for (int i = 0; i < a; ++i) {
	c=c*1.05;
	c=ceil(c*0.001);
	c=c*1000;
}
cout<<c<<endl;
}

C++: #include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  int n;
  cin >> n;

  int ans = 100000;
  for (int i = 0; i < n; i++) {
    ans += ans / 20;
    if (ans % 1000) {
      ans = ans / 1000 * 1000;
      ans += 1000;
    }
  }
  cout << ans << endl;

  return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int money=1e5;
    int n;
    while(cin>>n)
    {
        for(int x=0;x<n;x++)
        {
            money*=1.05;
            if(money%1000!=0)
                money=(int)(money/1000*1000)+1000;
        }
        cout<<money<<endl;
    }
    return 0;
}

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

int main(){
    int n;
    cin >> n;
    double m = 100; // unit:k

    for(int i = 0; i < n; i++){
        m = ceil(m * 1.05);
    }
    cout << m*1000 << endl;
    return 0;
}

C++: #include<iostream>

int main()
{
	int money = 100000;

	int n;

	std::cin >> n;

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

		if(money%1000 != 0)
		{
			money/=1000;
			++money;
			money*=1000;
		}
	}

	std::cout << money << '\n';
}

C++: #include<iostream>
#include<stdio.h>
#include<math.h>
using namespace std;

int main(void){
    int i,n;
    double ans;
    cin >> n;
    ans=100.000;
    for(i=0;i<n;i++){
        ans*=1.05;
        ans=(int)(ans+0.999);
        ans=(double)ans;
    }
    ans*=1000;
    printf("%d\n",(int)ans);
    return 0;
}

C++: #include<bits/stdc++.h>
int main(){int d,k;std::cin>>d;k=ceil(pow(1.05,d)*10)*10000;printf("%d\n",k);}

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

C++: int main(void) {
    int i, n, k;
    scanf("%d",&n);
    i = 100000;
    while (n > 0) {
        i = i * 1.05;
        if(!(i % 1000 == 0))
        {
            k = i % 1000;
            i = i + 1000 - k;
        }
    n--;
    }
    printf("%d\n", i);
    return 0;
}

C++: #include<iostream>
#include<string>

using namespace std;

int main () {
	long debt=100000;
	int n;
	cin >> n;
	for (; n > 0; --n) {
		debt *= 1.05;
		long a = (debt % 1000 == 0) ? 0 : 1;
		debt = (long)(debt / 1000 + a) * 1000;
	}

	cout << debt << endl;

	return 0;
}

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

int main(void){
    int n;
    std::cin>>n;
    std::cout<<round(10*pow(1.05,n)+1000)<<std::endl;
    return 0;
}

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

void debtAfterWeeks(int &debt, int interest, int &n){
	float fdebt,quotient;
	if(n==0){
		return;
	}else{
		fdebt=static_cast<float>(debt)*(1.0+static_cast<float>(interest)/100.0);
		debt=static_cast<int>(ceil(fdebt));
		quotient = debt % 1000;
		if(quotient != 0){
			debt = debt + 1000.0 - quotient;
		}
		--n;
		debtAfterWeeks(debt, 5, n);
	}
}

int main(){
	int n;
	int debt=100000;
	cin>>n;
	debtAfterWeeks(debt, 5, n);
	cout<<debt<<endl;
	return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(){
  int n;
  int ans=100000;
  cin>>n;
  for(int i=0;i<n;i++){
    ans=ans+ans/100*5;
   /*   ans+=900;
   ans=(int)ans/1000;
   ans=ans*1000;*/
    if(ans%1000!=0)ans+=1000-ans%1000;
  }
  printf("%d\n",ans);
  //cout<<(int)ans<<endl;
}

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

int main(){
	long long int n,i,out;
	long double price = 100000;
	cin >> n;
	for(i=0;i<n;i++){
		price += price * 0.05;
	}
	price = ceil(price/10000);
	out = (int)price*10000;
	cout << out;
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG false

int main()
{
    int n;
    cin>>n;
    long long int ans=100000;
    rep(i,n){
        ans+=ans*5/100;
        int temp=ans%1000;
        if(temp!=0){
            ans+=1000;
            ans-=temp;
        }
    }
    cout<<ans<<endl;
}

C++: #include<stdio.h>
int main(){
    int n;
    int ans=100000;
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        ans=ans*1.05;
        if(ans%1000>1){
            ans=ans+1000-ans%1000;
        }
    }
    printf("%d\n",ans);
    return 0;
}