Go: package main

import "fmt"

func roundUp1000(dept float64) float64 { 
	iDept := int(dept)
	if iDept-(iDept/1000*1000) != 0 { 
		iDept = ((iDept / 1000) + 1) * 1000 
	}
	return float64(iDept)
}

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

	dept := 100000.0
	for i := 0; i < week; i++ {

		dept *= 1.05
		dept = roundUp1000(dept)
	}

	fmt.Println(int(dept))
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <sstream>
#include <cstdlib>
#include <cmath>
 
using namespace std;

int main(){
    long double debt = 100000;
    int n;
    cin >> n;
    for(int i = 0; i < n; i++){
    	debt +=  debt * 0.05;
    	debt /= 1000.000;
    	debt = ceil(debt);
    	debt *= 1000.000;
    }
    cout << debt << endl;
    return 0;
}

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

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

int main() {
  int n;
  int d = 100000;
  cin >> n;
  while (n--) {
    int r = d / 20;
    if (r % 1000 > 0)
      r = r - r % 1000 + 1000;
    d += r;
  }
  cout << d << endl;
}

C++: #include <iostream>

int main(){
        int n;
        std::cin >> n;
        double result=100;
        for(int i=n;i;i--){
                result*=1.05;
                result=(int)(result+0.9);
        }

        result*=1000;
        int i=result;
        std::cout << i;

        return 0;
}

C++: import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*1000);}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}

C++: #include<iostream>
#include<cmath>
int main(){
	double yami = 100.000;
	int n;
	std::cin >> n;
	for(int i = 0;i < n; ++i){
		yami += yami / 20.000;
		if(ceil(yami) != floor(yami)){
			yami = ceil(yami);
		}
	}
	std::cout << yami * 1000 << endl;
	return 0;
}

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

int main()
{
    int b,n,m=100000;
	cin >> n;
	for(int i=0 ; i<n ; i++){
		m*=1.05;
		b=m%1000;
		if(b>=1){
			m+=1000;
			m-=b;
		}
	}
	cout << m << endl;
	return 0;
}

C++: #include <stdio.h>
int main() {int kane=100000,N;scanf("%d",&N);while (N--) {kane=kane+kane/20;int rest=kane%1000;if (rest) kane+=(1000-rest);}printf("%d\n",kane);return 0;}

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

int main()
{
	int n, debt = 100000;
	double risi = 1.05;

	cin >> n;
	for(int i = 0; i < n; i++){
		// ???????????????
		debt *= risi;

		// ????????????????????????
		debt += 1000 - (debt % 1000);
		
	}
	cout << debt << endl;

	return 0;
}

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

int main(){
  int money = 100000, n;
  cin >> n;
  for(int i = 0;i < n;i++){
    money *= 1.05;
    if(money % 1000 > 0) {
      money -= money % 1000;
      money += 1000;
    }
  }

  cout << money << "\n";
  return 0;
}

C++: //↓template↓

#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n)  n.begin(),n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = { 1,0,-1,0 }, dy[] = { 0,1,0,-1 }, alp[30];
long long fac[200005], finv[200005], inv[200005];
vector<long long>dij;
struct edge { long long to, cost; };
vector<vector<edge> >G;

long long mod_pow(long long a, long long b) {
	long long res = 1, mul = a;
	for (int i = 0; i < 31; ++i) {
		if (b >> i & 1) {
			res *= mul;
			res %= MOD;
		}
		mul = (mul * mul) % MOD;
	}

	return res;
}

void addedge(int from, int to, int cost) {
	G[from].push_back({ to,cost });
	G[to].push_back({ from,cost });
}

//↑template↑


int main() {
	long long n, ans = 100000;
	cin >> n;
	while (--n) { ans = (ans + ans / 20 + 999) / 1000 * 1000; }
	cout << ans << endl;
}

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

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

int main()
{
    int n;
    int ans=100000;
    cin>>n;
    for(int i=0;i<n;i++)
    {
        ans*=1.05;
        if((ans%1000)!=0)
            ans=ans-ans%1000+1000;
    }
    cout<<ans<<endl;
    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,ten=100000,ten2;
  cin>>n;
  rep(i,n)ten+=5000;
  ten2=ten/10000*10000;
  if(ten!=ten2)ten+=5000;
  cout<<ten<<endl;
}

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

int main(void){

	int n, money;
	cin>>n;
	money = 100000;
	for (int i=0; i<n; i++){
		money = ceil(((double)money * 1.05)/1000)*1000;
	}
	cout<<money<<endl;
	return 0;
}

C++: #include <cstdio>

const int DEBT = 100000;

int main(int argc, char *argv[]) {
	int week;
	double sumDebt = static_cast<double>(DEBT);
	fscanf(stdin, "%d", &week);
	
	for (int i = 0; i < week; i++) {
		sumDebt += sumDebt * 0.05;
		sumDebt = static_cast<int>(sumDebt);
		int hasu = static_cast<int>(sumDebt) % 1000;
		if (hasu > 0) {
			sumDebt = sumDebt - hasu + 1000;
		}
		//printf("%d week is %.3f\n", i, sumDebt);
	}
	printf("%d\n", static_cast<int>(sumDebt));
	return 0;
}

C++: #include <iostream>

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

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

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

	const double inter = 0.05;
	double debt = 100000.0;
	int a = 0;

	for(int i = 0;i < n;i++){
		debt += debt * inter;
		a = (int)debt%1000;
		if(a != 0){
			debt += 1000.0 - (double)a;
		}
	}

	cout << (int)debt << endl;

	return 0;
}

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

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

const double BORROWING_AMOUNT = 100000;

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

    double value = BORROWING_AMOUNT;
    for (int i = 1; i <= n; ++i) {
        value += value * 0.05;
        int mod = (int) value % 1000;
        if (mod > 0) {
            value += 1000 - mod;
        }
    }
    cout << value << endl;

    return 0;
}

C++: 

#include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

using namespace std;
int main()
{long long a = 100000;
	int s;
	cin >> s;
	for (int i = 0; i < s; i++) {
		a *= 1.05;
	}
	if (a % 1000 == 0) {
		
	}
	else { a = a - (a % 1000); }
	cout << a; return 0;

}

C++: #include<iostream>
//#define DEBT 100000

using namespace std;

main(){
int inNum,i;
int debt = 100000;

cin>>inNum;
cout<<"amount of the debt"<<endl;
for(i = 0; i <= inNum; i++){
debt*=1.05;
}
debt/=10000;
debt*=10000;
cout<<debt<<endl;
}

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

int main(){
    int ans = 100000;
    int n;
    cin >> n;
    for(int i=0;i<n;i++){
        ans += ans*0.05;
        if(ans%1000!=0)
            ans = ans-ans%1000 + 1000;
    }
    cout << ans << endl;

    return 0;
}

C++: #include <stdio.h>

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

	scanf("%d", &n);
	for(int i=0 ; i<n ; i++){
		money += 100000.0 * 0.05;
		money += 1000 - (money%1000);
	}
	printf("%d", money);

	return 0;
}