Go: package main

import (
	"fmt"
)

func main() {
	const debt = 100000
	var week int
	fmt.Scan(&week)
	totalDebt := debt + week*(5*debt/100)
	if week%2 != 0 {
		totalDebt += 5000
	}

	fmt.Println(totalDebt)
}

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

int main(void){
    int n;
    long long int ans=100000;
    cin>>n;
    for (int i=0;i<n;i++) {
        ans=ans*1.05;
        double tmp=ans%1000;
        ans-=tmp;
        tmp=tmp/1000;
        tmp=ceil(tmp);
        tmp*=1000;
        ans+=tmp;
    }
    cout<<ans<<endl;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	int n,a=100000;
	while(cin>>n){
		for(int i=1;i<=n;i++){
			int b=a*0.05;
			if(b%1000)
				b=(b/1000+1)*1000;
			a+=b;
		}
		cout<<a<<endl;
	}
	return 0;
}

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

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

 for(int i = 0; i < n; ++i){
  maney = money + (money * 0.05);
  if(money % 1000 != 0){
   money += 1000;
  }
 }
 cout << money << endl;
 return 0;
}

C++: a=100000;gets.to_i.times{a=((a*1.05/1000).ceil)*1000;};puts a;

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cmath>
#include <utility>

#define ll (long long)
#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)


using namespace std;


int main(void)
{
    int n;
    double money = 100000;
    int keta = 1;
    int judge = 1;
    double temp;
    cin >> n ;
    FOR(i, 1,n+1 )
    {
        money+= 0.05*money;
        temp = money;
        while(judge)
        {
            temp = (int)temp /10;
            if (temp) {
                keta++;
            }else
                judge = 0;
        }
        
        REP(i,3)
        money = money /10;
        money = ceil(money);
        //cout << money << endl;
        REP(i, 3)
        money = money*10;
        keta = 0;
        judge = 1;
    }
    
    
    cout << money << endl;
    return 0;
}

C++: #include <cstdio>

using namespace std;

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

C++: #include <iostream>

using namespace std;

int main()
{
	int n;
	double debt = 100.000;
	cin >> n;
	for(int i=0;i<n;i++){
		debt *= 1.05;
		debt = (int) debt + 0.999;
	}
	
	debt *= 1000;
	cout << debt << endl;
	
	return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstdio>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define pb push_back
#define mp make_pair
#define it ::iterator
#define all(in) in.begin(),in.end()
typedef long long int LLI;
const double PI=acos(-1);
const double ESP=1e-10;
using namespace std;
int main(){
  int n;
  cin>>n;
  int ans=100000;
  rep(i,n){
    ans*=1.05;
    if(ans%1000){
      ans-=ans%1000;
      ans+=1000;
    }
  }
  cout<<ans<<endl;
}

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

int main() {
  int n;
  cin >> n;
  int A=pow(10,5);
  for (int i=0; i<n; i++) {
    A*=(1.05);
    A = (A + 999) / 1000 * 1000;
  }
  
  printf("%d\n",A);
  return 0;
}

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

using namespace std;

int main()
{
    int n; cin >> n;
    int a = 100000;

    for (int i = 0; i < n; ++i) {
        a += (double)a * (5 / 100.0);
        a += (1000 - a % 1000) % 1000;
    }

    cout << a << endl;
}

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

int main(){
int n;
scanf("%d",&n);
double base = 100000;
for(int i=0;i<n;i++){
base*=1.05;
if((int)base %1000 !=0) {
int tmp = (int)base / 1000;
base = tmp*1000 + 1000;
}

}
printf("%d\n",(int)base);
}

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

int main() {
	int n, i;
	double a = 100000;
	cin >> n;
	for (i = 0; i<n; i++) {
		a *= 1.05;
		ceil(a);
		while ((int)a % 1000 != 0) {
			a += 1;
		}
	}
	cout << a << endl;
}

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

typedef long long ll;
using namespace std;

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

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

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

int main() {
	int week;
	cin >> week;
	int debt = 100;
	for (int i = 0; i < week; i++)
	{
		debt = ((debt * 105) / 100) + ((debt % 20) > 0 ? 1 : 0);
	}
	cout << debt << "000" << endl;

	return 0;
}

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

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

    int loan = 100000;

    for (int i = n; i > 0; i--) {
        loan = ceil((loan * 1.05) / 1000.0) * 1000;
    }

    cout << loan << '\n';
}

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

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

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

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

int age(int t) {
	return ceil((double) t / 10000) * 10000;
}

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

	int loan = 100000;
	loan += loan * 0.05 * n;

	std::cout << age(loan);
}

C++: #include <stdio.h>
int main(){
int n;
scanf("%d",&n);
printf("%d\n",n*5000+100000);
}

C++: #include <iostream>
#include <cstdio>
using namespace std;
#define REP0(i,n) for(int i=0;i<n;++i)
#define REP1(i,n) for(int i=1;i<=n;++i)
#define ALL(c) (c).begin(),(c).end()
int main(){
	int d=100000,n;
	scanf("%d",&n);
	REP0(i,n){
		d=d*105/100;
		d=(d+999)/1000*1000;
	}
	printf("%d\n",d);
	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>
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;
}