Go: package main

import "fmt"

var (
	dept    float64 = 100000
	addDept float64 = dept * 0.05
)

func main() {
	var week int
	var nWeekDept float64
	fmt.Scan(&week)

	nWeekDept = dept + (addDept * float64(week))

	if int(nWeekDept)%1000 != 0 {
		nWeekDept += addDept
	}
	fmt.Println(nWeekDept)
}

C++: #include <iostream>

const int debt(const int n)
{
    return (int)(((100000 * 0.05 * n) / 10000) + 0.9) * 10000 + 100000;
}

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

    std::cout << debt(n) << std::endl;

    return 0;
}

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

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n;
    cin>>n;
    int debt=100000;
    for(int i=0; i<n; i++){
        debt=debt/20*21+999;
        debt-=debt%1000;
    }
    cout<<debt<<'\n';
    return 0;
}

C++: #include <iostream>

using namespace std;

int debt_hell(int n) {
        int debt = 100000;
        while(n--) {
                debt = debt * 105;
                debt = debt / 100;

                int rem = debt % 1000;
                if (rem != 0) {
                        debt = debt + 1000;
                }
                debt = debt - rem;
        }
        return debt;
}

int main(void) {
        int n;

        cin >> n;

        cout << debt_hell(n) << endl;

        return 0;
}

C++: #include <iostream>

int main(){
	int n,debt=100000;
	for(int i=0,cin>>n;i<n;i++) debt*=1.05;
	std::cout<<(debt%1000 ? debt/1000*1000+1000 : debt)<<'\n';
	return 0;
}

C++: #include <iostream>
#include <cmath>
#include <algorithm>
#include <string>
#include <stdio.h>
using namespace std;
int main() {
    int n;
    cin >> n;
    int a=100000;
    for(int i=0;i<n;i++){
        a=a*1.05;
        int b;
        b=a/1000;
        if(a%1000!=0){
            a=(b+1)*1000;
        }
    }
    cout << a<<endl;
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <functional>
#include <sstream>
#include <stdio.h>
using namespace std;

// Debt Hell(0007)
int main()
{
	int n, ans = 100000;
	cin >> n;
	for (int i = 0; i < n; ++i) {
		int r = ans * 5;
		if (r % 100000 != 0)
			r = (r / 100000 + 1) * 100000;
		r /= 100;
		ans += r;
	}
	cout << ans << endl;
	return 0;
}

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

int n;
double rent = 100000;

int main()
	{
		cin>>n;
		for(int i=0;i<n;i++)
		{
		 rent = rent *1.05 ;
		 rent = rent /1000;
		 rent = rent + 0.9;
		 rent = (int)rent;
		 rent *= 1000;
		}
		cout << rent << endl;
	}

C++: #include <iostream>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <numeric>
#include <cctype>

using namespace std;

#define loop(i,a,b) for(int i=(a); i<(int)(b); i++)
#define rep(i,b) loop(i,0,b)
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define pb push_back
#define mp make_pair

typedef unsigned uint;
typedef long long ll;
typedef unsigned long ulong;
typedef unsigned long long ull;

typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vvb;

typedef double Real;
const Real eps = 1e-9;
const Real inf = 1e20;

int main(){
    int n;
    int k,m;
    m = 100000;
    cin >> n;

    for(int i = 0;i < n;i++){
        m = m*1.05;
        k = m%1000;
        if(k > 0){
            m = 1000+m - k;
        }
    }
    cout << m << endl;
}

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

int main(){
    double money = 10;
    int ans;
    int n;
    cin >> n;
    for(int i=0;i<n;++i){
        money *= 1.05;
    }
    ans = round(money);
    ans *= 10000;
    cout << ans << endl;
}

C++: #include<iostream>
#include<string>
#include<math.h>
using namespace std;
int main(){
int n;
long long int x=100000;
cin>>n;

for (int i=0;i<n;i++){
	x*=1.05;
	x=ceil((double)x/1000)*(1000);
}
cout<<x<<endl;
}

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

int main(){
  int i,j,k;
  int n;
  double  money = 100;

  cin>>n;

  for(i=0;i<n;i++){
    money += money*0.05;
    money = ceil(money);

  }

  cout<<money*1000<<endl;

  return 0;
}

C++: #include <iostream>

int main() {
	int n; std::cin >> n;
	int debt = 100000;
	for (int i=0; i<n; i++) {
		debt *= 1.05;
		if (debt % 1000 > 0)
			debt = debt - (debt % 1000) + 1000;
	}
	std::cout << debt << std::endl;
	return 0;
}

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

int main()
{
	int x;
	cin >> x;
	int n = 100000;
	for (int i = 0; i < x; i++){
		n = n / 20 * 21;
		if (n % 10000 > 0){
			n = n - n % 10000;
			n += 10000;
		}
	}
	cout << n << endl;
	return 0;
}

C++: #include<cstdio>

int main(){
	int n,k=100000;
	scanf("%d",&n);
	for(;n>0;n--){
		k+=k/20;
		if(k%1000){
			k+=1000;
		}
		k-=k%1000;
	}
	printf("%d\n",k);
	return 0;
}

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

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<queue>
#include <algorithm>
#include<functional>
#include<cstdlib>
#include<cmath>


#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

typedef pair<int, int> P;
typedef pair<long, long> LP;
typedef pair<int, P> PP;
typedef pair<long, LP> LPP;



int dy[] = { 0, 0, 1, -1, 0 };
int dx[] = { 1, -1, 0, 0, 0 };

int A = 0, B = 0, K = 0, T = 0, W = 0, N = 0, H = 0;
int n = 0;
double L = 0;
double S = 0;
double ar = 0, br = 0, cr = 0;
int answer = 0;

string C;
string sA, strB;
vector<vector<char>> map;
vector<double> num;
vector<string> str;

int sum = 0;

vector<int> value;
vector<int> weight;

int dp[110][10010];

int data_[210][2] = { -2 };

void input(void) {
	CI n;
	return;
}


int main(void) {
	input();
	long double money = 100000;
	
	for (int i = 0; i < n; i++) {
		money *= 1.05;
		if ((int)money % 1000 != 0) {
			money = money - ((int)(money) % 1000) + 1000;
		}
		
	}
	
	CO (int)money E
	

	return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main() {
double n=100000;
int i,b;
cin>>b;
for(i=0;i<b;i++){
n*=1.05;
n=(int)(n+999)/1000*1000;
}

cout<<n<<endl;
  return 0;
}

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

int main(){
    int weeks, debt = 100000;
    std::cin >> weeks;
    for(int i=0; i<weeks; i++){
        debt *= 1.05;
        debt = ceil(debt / 1000.0) * 1000;
    }
    std::cout << debt << std::endl;
	return 0;
}

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

int main(void){
  int money = 100000, weeks;
  cin >> weeks;
  for(int i = 0; i < weeks; i++){
    money += (money / 100) * 5;
    int underTp = money % 1000;
    if(underTp != 0){
      money -= underTp;
      money += 1000;
    }
  }
  cout << money << endl; 
  return 0;
}

C++: #include<iostream>

using namespace std;

int main(void){
	long money = 100000;
	int n;
	while(cin >> n){
		for(int i = 0; i < n; i++){
			money *= 1.05;
			if(money / 100 % 10) money = money/1000*1000 + 1000;
		}
		cout << money << endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++) 
#define ALL(n) begin(n),end(n)
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
const int M{ 100000 };
int main()
{
    int N;
    cin >> N;
    int res{};
    REP( i, N )
    {
        res += M * 0.05;
    }
    cout << ( M + res + 9999 ) / 10000 * 10000 << endl;
    return 0;
}