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 <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
using namespace std;
static const double EPS = 1e-5;
typedef long long ll;
#define FOR(i,n) for(i=0;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
	int n;
	cin>>n;
	double d=100;
	rep(i,n){
		d*=1.05;
		d=(int)(d+0.99999);
	}
	cout<<d<<"000"<<endl;
	return 0;
}

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

C++: #include<iostream>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<numeric>
#include<climits>
#include<ctime>
#include<cstring>
#define REP(i,p,n) for(int i=p;i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))
#define all(c) (c).begin(), (c).end()

using namespace std;
template<class T> inline void chmax(T& a, T b) { if(b > a) a = b; }
template<class T> inline void chmin(T& a, T b) { if(b < a) a = b; }

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

	cin >> N;
	rep(i,N) {
		money = (money + money * 0.05);
	}
	string a_str = to_string(money);
	vector<char> strs;

	for (int i = a_str.size()-1; i >= 0; i--) {
		strs.push_back(a_str[i]);
	}
	rep(i,4) {
		strs[i] = '0';
	}
	strs[4] = strs[4] + 1;
	/*
	rep(i,strs.size()) {
		//cout << strs[i];
	}
	*/

	vector<char> strs2;
	for (int i = strs.size()-1; i >= 0; i--) {
		cout << strs[i];
	}
	cout << endl;

	return 0;
}

C++: #include<iostream>
//#include<algorithm>
//#include<cmath>
//#include<string>
//#include<cctype>
//#include <vector>
using namespace std;
int main(){
	int a=100,n;
	cin >> n;
	while (n--) a = a*1.05 + 0.9;
	cout << a * 1000 << endl;
	return 0;
}

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

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

	cin >> week;

	for(i=0;i<week;i++){
		debt=debt*105/100;
		if(debt%1000){
			debt = debt - (debt%1000) + 1000;
		}
	}
	
	cout << debt;
}

C++: #include <stdio.h>
#include <string>
#include <iostream>

using namespace std;


int main(){
    int week;
    cin >> week;
    double money =100;

    for(int i=0; i<week; i++){
        money=money * 1.05;
        money+=0.9;
        money=int(money);
    }
    printf("%d\n",int(money)*1000);
}

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

int main(){
  int debt = 10000, n;
  cin >> n;
  while(n--){
  	debt = debt * 105 / 100;
  }
  int result = debt / 1000;
  if(debt % 1000 > 0)
  	result++;
  result *= 1000;
  cout << result << endl;
}

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

int roundup(int init){
	//roundup 1000
	return (init + 999)/1000*1000;
}

//0007
int main(){
	const int initial = 100000;
	const int ratio_numerator = 105;
	const int ratio_denominator = 100;
	int weeks, term;

	cin >> weeks;

	//term = initial*(ratio**n)
	term = initial;
	for(int i=0; i<weeks; ++i){
		term = term * ratio_numerator / ratio_denominator;
		term = roundup(term);
	}

	cout << term << endl;
	return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include <math.h>
using namespace std;
int main(){
    int n, rent; cin >> n;
    if(n % 2 != 0){
        rent =  floor(n / 2) + 1;
    }else{
        rent = n / 2;
    }
    cout << 100000 + rent * 10000 << endl;
    return 0;
}

C++: #include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#include<stack>
#include<queue>

#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007

using namespace std;

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

	cin >> n;

	FOR(i, 1, n) {
		money *= 1.05;
		if (money % 1000 != 0) {
			money = money - (money % 1000);
			money += 1000;
		}
	}
	cout << money << endl;
	return 0;
}

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

int main(){
  int n;
  double m=100000;
  cin>>n;
  for(int i=0;i<n;i++){
    m+=m*0.05;
    if((int)m%1000){
      m=(int)m/1000*1000;
      m+=1000;
    }else m=(int)m/1000*1000;
  }
  cout<<m<<endl;
  
  return 0;
}

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

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

C++: #include <iostream>


using namespace std;

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

  cout << money<<endl;

  return 0;
}

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

C++: #include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include <windows.h>

int main(void);
int kiriage(int num);


int main(){
	int n;					//n週
	int debut = 100000;		//借金
	std::cin >> n;

	for (int i = 0; i < n; i++)
	{
		debut *= 1.05;
		std::string str_debut = std::to_string(debut);
		if ((str_debut[str_debut.length() - 1] == '0') &&
			(str_debut[str_debut.length() - 2] == '0') &&
			(str_debut[str_debut.length() - 3] == '0')
			){
			;
		}
		else{
			debut = kiriage(debut);
		}
	}

	std::cout << debut << std::endl;

	//while (1);
	return 0;
}

//1000円未満を切り上げる関数
int kiriage(int num){
	num = num / 1000 * 1000 + 1000;
	
	return num;
}

C++: #include <bits/stdc++.h>
using namespace std;
int yen=100000;
int main()
{
    int a,b,i,j,p,q;
    cin>>a;
    for(i=1;i<=a;i++)
    {
        b=yen*5;
        b=b/100;

        p=b/1000;
        q=b%1000;
        if(q!=0)p++;

        yen=yen+(p*1000);
    }
    cout<<yen;
    return 0;


}

C++: //Debt Hell
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;

ll debt(ll x, int n){
  if(n==0)return x;
  else{
    x*=1.05;
    if(x%1000!=0)return debt(x-x%1000+1000, n-1);
    else return debt(x, n-1);
  }
}

int main(){
  int n;
  scanf("%d", &n);
  printf("%lld\n", debt(100000, n));
  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a;
  int b=100000;
  cin>>a;
  for(int i=0;i<a;i++){
    b=b*1.05;
    int c=b;
    if(c%1000!=0){
      b=b/1000;
      b=b*1000;
      b=b+1000;
    }
  }
  cout<<b<<"\n";
}

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

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

using namespace std;

int main()
{
	unsigned int n;
	
	cin >> n;
	
	double a = 100000;
	for (int i = 0; i < n; i++)
	{
		a *= 1.05;
		a /= 1000;
		a = floor(a);
		a *= 1000;
	}
	cout << a << endl;
	
	return 0;
}

C++: #include<iostream>
#include<stdio.h>
using namespace std;
int main() {
	int a, b, c, n=100000,s;
	cin >> a;
	for (a; a > 0; a--) {
		n *= 1.05;
		if (n % 1000 != 0)n += 1000;
		n /= 1000;
		n *= 1000;
	}
		cout << n<<endl;
	return 0;
}

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