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 <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
#include<iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
typedef int long long ll;

using namespace std;
int main(){
    
    int n;
    cin>>n;
    int ans=100000;
    rep(i,n){
        ans=ans*1.05;
        if(ans%1000>0){
            ans=ans/1000;
            ans++;
            ans=ans*1000;
        }
    }
    
    
    cout<<ans<<endl;
    
    return 0;
}

C++: #include <iostream>

int main() {
	int saimu = 100000;
	static const int riritsu = 5;	/* percent */
	static const int roundUnit = 1000;

	int n;
	std::cin >> n;

	for (int i = 0; i < n; ++i) {
		saimu += saimu / 100 * riritsu;
		saimu = ((saimu + roundUnit - 1) / roundUnit) * roundUnit;
	}

	std::cout << saimu << '\n';

	return 0;
}

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

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

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <string>
#define rep(x,to) for(x=0;x<to;x++)
#define rep2(x,from,to) for(x=from;x<to;x++)

using namespace std;


int main(void){

int n,i,s,kin=100000;
double wkin;
	cin >> n;
	rep(i,n){
		wkin = kin * 1.05;
		s=0;
		if((wkin /1000) > (int)(wkin /1000)) s = 1;
		kin = ((int)(wkin /1000) + s) * 1000;
	}
	cout << kin << endl;
	return 0;
}

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

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

	cin >> n;

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

	cout << money << endl;

	return 0;
}

C++: #include<iostream>
#include <cstdio>
#include <algorithm>

using namespace std;

int main() {

	int N, i, sum=100000;

	cin >> N;

	for (i = 0; i < N; i++) {
		sum *= 1.05;
		if(sum -(sum/1000)*1000 != 0)
			sum = ((sum + 1000) / 1000) * 1000;
	}

	cout << sum << endl;

	return 0;

}

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

int main()
{
    int a;
    int debt=100000;
    cin >> a;
    for (int i=0; i<a; i++)
    {
	debt+=debt/20;
	debt=(debt+999)/1000*1000;
    }
    cout << debt << endl;
    return 0;
}

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

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

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

C++: #include <cstdio>

using namespace std;
 
int main() {
	int n;
	long base = 100000;
	float interest = 0.05f;
	long roundNum;

	scanf("%d", &n);
	
	while (n--) {
	    base = base * (1 + interest);
	    roundNum = base % 1000;
	    base += (1000 - roundNum);
	}
	
	printf("%ld\n", base);
	
	return 0;
}

C++: #include<iostream>
#include<iomanip>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<cmath>
#include<queue>
#include<stack>
#include<functional>
#include<string>
#include<cstring>
#include <sstream>
using namespace std;
int main(void){
    int n,i,ans,r_up;
    cin >> n;
    ans = 100000;
    for(i = 0; i < n; i++){
        ans += ans * 0.05;
        r_up = ans % 1000;
        if(r_up != 0){
            ans += (1000 - r_up);
        }
    }
    cout << ans << endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char *argv[]) {
  int n;
  double debt = 100000;

  cin >> n;
  for (int i = 0; i < n; i++) {
    debt *= 1.05;
    if ((int)debt % 1000)
      debt = ((int)debt / 1000 + 1) * 1000;
    else
      debt = ((int)debt / 1000) * 1000;
  }
  cout << (int)debt << endl;
  return 0;
}

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

C++: #include<iostream>

using namespace std;

int main(){
	int n;
	cin>>n;
	int ans=100000;
	for(int i=0;i<n;i++)ans+=ans*5/100;
	
	if(ans%10000)ans+=(10000-ans%10000);
	cout<<ans<<endl;
}

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

int main() {
	int n;
	cin >> n;
	int res = 100000;
	while(n-- > 0){
		res = res * 1.05;
		if(res % 1000)
			res = res / 1000 * 1000 + 1000;
	}
	cout << res << endl;
	return 0;
}

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

int main(){
	int debt = 100000;
	int n;
	cin >> n;
	for(int i = 1;i<=n;i++){
		debt = debt *105 / 100;
		if( debt %1000 != 0 && debt % 1000 <999)
			debt = debt / 1000 *1000 +1000;
		else
			debt = debt / 1000 *1000;
	}
	cout << debt << endl;
	
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int n;
	cin>>n;
	int lend=100000;
	for(int i=1;i<=n;i++){
		lend=(lend*1.05-1)/1000;
		lend=(lend+1)*1000;
	}
	cout<<lend;
}

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

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

#define FOR(i,a,b) for(long long int i=(a);i<(b);i++)
#define REP(i,n) for(long long int i=0;i<(n);i++)
#define ALL(s) (s).begin(),(s).end()

#define PI 3.14159265358479

typedef long long int ll;
typedef vector<long long int> vi;

int main(){
	ll n,m=100000;
	cin >> n;
	REP(i, n){
		m *= 1.05;
		if (m % 1000 != 0){
			m -= m % 1000;
			m += 1000;
		}
		cout << m;
	}
	cout << m << "\n";
}

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

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

}

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

double cutup(double x) {
  if (x - (double)((int)x / 1000) * 1000 > 0) {
    x = (double)((((int)x / 1000) + 1) * 1000);
  }
  return x;
}

double money(double x, int target, int depth = 0) {
  if (target == depth) { return x; }
  return money(cutup(x * 1.05), target, depth + 1);
}

int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int n, x;
  cin >> n;

  printf("%.0f\n", money(100000., n));

  return 0;
}

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

int main() {
	int money = 100000;
	int week;
	cin >> week;
	for (int i = 0; i < week; i++) {
		money = money*1.05;
		if (money % 1000 == 0)continue;
		else money = 1000 * (money / 1000 + 1);
	}
	cout << money << endl;
}

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

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

using namespace std;

int main()
{
    int n;
    double debt = 100000;

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

    return 0;
}

C++: #include <iostream>

int main()
{
	int weeks = 0;
	int amount = 100000;
	std::cin >> weeks;
	for (int i = 0; i < weeks; ++i) {
		amount = amount * 105 / 100;
		amount = (amount + 999) / 1000 * 1000;
	}
	std::cout << amount << std::endl;

	return 0;
}