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 <cmath>
using namespace std;

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

    double pay = 100.0;
    for(int i = 0; i < week; i++)
    {
        pay = ceil(pay * 1.05);
        cout << "pay = " << pay << endl;
    }
    cout << pay * 1000 << endl;
}

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

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

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

C++: #include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<set>
#include<string>
#include<functional>
#include<queue>
#include<stack>
#include<math.h>
#define INF 999999

using namespace std;

typedef long long ll;

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

	int debt;
	debt = 100000;

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

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

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

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

int main(){
	long n;
	cin >> n;
	n = 5;
	long money = 100000;
	for (long i = 1; i <= n; i++){
		money *= 1.05;
		if (money % 1000 != 0) money += 1000 - money % 1000;
	}
	cout << money << endl;
	return 0;
}

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

#include <math.h>

int main(){

	int n=0;
	double syakkin = 100000.0;

	cin >> n;


	for (int i = 0; i < n; i++){
		syakkin = syakkin * 1.05;
		if (long(syakkin) % 1000 != 0){
			syakkin = syakkin - double(long(syakkin) % 1000) + 1000.0;
		}
		//cout << syakkin << endl;
	}
	
	cout << long(syakkin) << endl;

	return 0;
}

C++: 
#include<iostream>
	int main()
	{
	double debt = 100000,add,n,p = 0.05;
	std::cin >> n;
	for (int i = 0; i < n; i++)
	{
		add = (double)(int)(((debt * 0.05)/1000)+0.999)*1000;
		debt += add;
	}
	std::cout << debt;
		return 0;
	}

C++: #include<stdio.h>

int main()
{
	int n;
	scanf("%d", &n);
	int i;
	long long int total = 100000;
	for (i = 0; i < n; i++)
	{
		total = total*1.05;
		total = total / 100.0;
		if (total % 10 != 0)total = total + (10 - (total % 10));
		total = total * 100;
	}
	printf("%d\n", total);
	return 0;
}

C++: #include <iostream>
using namespace std;
int b=100000;
int a;

int main(){
	cin>>a;
	for(int i=0;i<a;i++){
		b*=1.05;
		int d=b/1000;
    if(d*1000<b){
		b=d*1000+1000;
		}    

	}

	cout<<b<<endl;
	return 0;
	}

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

int main(){
    int debt = 100000;
    int week;
    
    cin >> week;
    
    for(int i = 0; i < week; ++i){
        (debt /= 100) *= 105;
        if(debt % 1000 > 0){
            ++ debt;
            debt *= 1000;
        }
    }

    cout << debt << 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();
	double money = 100000;
	
	for (int i = 0; i < n; i++) {
		money *= 1.05;
		if ((int)money % 1000 > 0) {
			money = money - ((int)(money) % 1000) + 1000 - (money - (double)(int)money);
		}
		
	}
	
	CO money E
	

	return 0;
}

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

C++: #include <iostream>

using namespace std;

int main()
{
    unsigned long long debt = 100000;
    int n;
    
    for (int i = 0; i < n; ++i) {
        debt *= 1.05;
        debt -= (debt % 10000) - 10000;
    }
    cout << debt << endl;
    
    return 0;
}

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

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

C++: #include <iostream>
#include <math.h>

using namespace std;

int main() {
   double v = 100000;
   double r;
   int n;

   cin >> n;

   for(int i = 0; i < n; i++) {       
       v += v * 0.05;
       r = fmod(v, 1000.0);          
        if(r != 0) {
            v += (1000 - r);
        }
   }
n = v;

   cout << n << endl;

    return 0;

}

C++: #include <stdio.h>
#include <string>
#include <string.h>
#include <cstring>
#include <algorithm>

const float a=1.05;

using namespace std;



int main(void)
{
	int debt,week;
	scanf("%d",&week);
	debt=100000;
	for(int loop=1;loop<=week;loop++)
	{
		debt*=1.05;
		if(debt%1000!=0)
		{
			debt=debt-(debt%1000)+1000;
		}
	}
	printf("%d\n",debt);
	return 0; 
}

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

int main(){

	int i,n=100000,m;

	cin >> i;
	while(i--){
		n+=n*0.05;
		m=n%1000;
		if(m){
			n+=1000-m;
		}
	}
	cout << n << endl;

	return 0;
}

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

int main(){
	double n,i,tmp;
	double ans=100000;
	cin>>n;
	while(n--){
		ans *= 1.05;
		ans = ceil(ans/1000.0)*1000.0;

	}
	cout<<ans<<endl;
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
#define mp make_pair
#define fi first
#define se second
#define ll long long
#define pb push_back

# define inOut(a,b) freopen(a,"r",stdin);freopen(b,"w",stdout);
# define RESET(a) memset(a,0,sizeof(a))
# define MEMO(a) memset(a,-1,sizeof(a))
# define DEBUG puts("Debug-Has-Come-Until-Here")


typedef pair<int,int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;

int main(){
	cin.tie(NULL);
	
	ll money = 100000;
	int n, i, j;
	scanf("%d", &n);
	for (i=1; i<=n; i++){
		money = money + (money/100 * 5);
		if (money %1000 > 0){
			money += 1000;
			money -= money % 1000;
		}
	}
	printf("%lld\n",money);

	return 0;
}

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

int main(){

	int n;
	
	while(cin>>n){

		int sum = 100000;


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

			sum *= 105/100.0;

			if((int)sum%1000>=1){
				sum /= 1000;
				sum *= 1000;
				sum += 1000;
			}
		}
		printf("%d\n",(int)sum);
	}
	return 0;
}

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

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

}

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

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

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

int main(){
int n,M,m;
M=100;
cin>>n;
for(int i=0;i<n;i++){
m=(M+19)/20;
M+=m;
}
cout<<M*1000;
}