Go: package main

import "fmt"

var (
	dept    int = 100000
	addDept int = dept / 100 * 5
)

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

	if week != 0 {
		nWeekDept = dept + addDept*week
	}

	if nWeekDept/addDept%2 != 0 {
		nWeekDept += addDept
	}
	fmt.Println(nWeekDept)
}

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

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

C++: #include <iostream>

using namespace std;

int main(){
	int now_money = 100000;
	int N;
	cin >> N;
	for(int i = 0; i < N; i++){
		now_money += now_money * 5 / 100;
		if(now_money % 1000 != 0){
			now_money -= now_money % 1000;
			now_money += 1000;
		}
	}
	cout << now_money << 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=ans*1.05;
		if(ans%1000>0) ans=ans-ans%1000+1000;
	}
	cout<<ans<<endl;
	return 0;
}

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

// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007&lang=jp

int main() {
	int n;
	cin >> n;
	int ans = 100000;
	for (int i = 0; i < n; i++) {
		ans += ans * 0.05;
	}
	int trunc = (ans / 10000) * 10000;
	cout << (trunc == ans ? ans : trunc + 10000) << endl;
	return 0;
}

C++: #include<iostream>

using namespace std;

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

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

	return 0;
}

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

int main(){
	int shakkinn=100000;
	int n;
	int i;

	scanf("%d", &n);

	for (i = 0; i < n; i++) {
		shakkinn *= 1.05;
		while (shakkinn % 1000 != 0) {
			shakkinn++;

	}
}
	printf("%d", shakkinn);
}

C++: #include <stdio.h>

int main(void)
{
	int a = 100000;
	int b = 0;
	int c = 0;
	int i = 0;
	int n = 0;
	
	scanf("%d",&n);
	
	
	for(i = 0;i < n;i++){
		b = a * 0.05;				//bは5250になる 5550
		c = b % 1000;				//cは250になる 550

		if(c > 0){
			b = (b - c + 1000);		//bは6000になる 
		}
		a += b;					//aはになる
	}
	printf("%d\n",a);	
	
	return 0;
}

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

int main(){
	double money = 100000;
	string str;
	int n;
	
	while(1){
		getline( cin, str );
		if( str.size()==0 )	break;
		sscanf(str.c_str(), "%d", &n);
		for( int i=0; i<n; i++ ){
			money = (double)money * 1.05;
			int up = money / 1000;
			if( (int)(money - up) > 0 ){
				money = (up+1)*1000;
			}else{
				money = up * 1000;
			}
		}
		int m = (int)money;
		cout << m << endl;
	}
	
	return 0;
}

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

typedef long long int LLI;

int n;
LLI debt = 100000;

int main() {
  scanf("%d", &n);
  for (int i=0; i<n; i++) {
    debt = debt/100*105;
    if (debt % 1000) debt = (debt/1000+1)*1000;
  }
  printf("%lld\n", debt);
}

C++: #include <iostream>

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

C++: #include <iostream>

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

	const int first = 100000;
	int loan;

	for (int i = 0; i < nWeeksLater; i++)
		loan = first + first * 0.05 * nWeeksLater;

	int a = loan / 10000;
	loan = loan % 10000 >= 5000 ? (a + 1) * 10000 : a * 10000;

	std::cout << loan << std::endl;
	system("pause");
}

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

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

int main(void)
{
  int debt = 100000;

  int n;
  scanf("%d", &n);

  int i;
  for(i=0; i<n; ++i){
    debt *= 1.05;
    debt = ceil(debt/1000.0)*1000;
  }

  printf("%d", debt);

  return 0;
}

C++: 
#include <iostream>
#include <vector>
#include <string>
#include <stdio.h>
#include <stdlib.h>
using namespace std;


//
int main(void){
//	FILE* fp_in = freopen("data.txt", "r", stdin);

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

C++: #include <stdio.h>

int main(void)
{
	int money = 100000;
	int week;
	
	scanf("%d", &week);
	
	for (int i = 0; i < week; i++){
		money += money * 0.05;
		money = (money + 999) / 1000 * 1000;
	}
	
	printf("%d", money);
	
	return (0);
}

C++: #include <iostream>

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

	const int first = 100000;
	int loan;

	for (int i = 0; i < nWeeksLater; i++)
		loan = first + first * 0.05 * nWeeksLater;

	int a = loan / 10000;
	loan = loan % 10000 >= 5000 ? (a + 1) * 10000 : a * 10000;

	std::cout << loan << std::endl;
}

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

int main(void) {
    int n = 5;
    
    long long int remain = 100000;
    
    for(int i = 0; i < n; i++) {
        remain *= 1.05;
        if(remain % 1000 > 0)
            remain = (remain - remain % 1000) + 1000;
    }
    
    std::cout << remain << std::endl;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main() {
	int n; cin >> n;
	int ans = 100000;
	float temp = 100000;
	for (int i = 0; i < n; i++) {
		temp += ans * 0.05;
		ans = round(temp / 10000) * 10000;
	}
	cout << ans << endl;
}

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

int main(){
    int n;
    cin>>n;
    double a=100;
    for(int i=0;i<n;i++){
        a*=1.05;
        if((a-(int)a)>0)a+=(1-(a-(int)a));
    }
    cout<<(int)a<<0<<0<<0<<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 && (int)base %1000 !=0) {
int tmp = (int)base / 1000;
base = tmp*1000 + 1000;
}

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

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

int main(){
int n,b=100000,c,d,tmp;
double f=100000;
	cin>>n;
	for(int i=0;i<n;i++){
		f*=0.05;
		tmp=f;
		b=b+tmp;
		d=b;
		b/=1000;
		b*=1000;
		if(d-b>0)b+=1000;
		f=b;
	}
	cout<<b<<endl;
	return 0;
}

C++: #include <iostream>

int main(){
        int n;
        while(std::cin >> n){
                int result=100000;
                while(n--){
                        result*=1.05;
                        if(result%1000!=0)result+=1000-result%1000;
                }

                std::cout << result << std::endl;
        }

        return 0;
}

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

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

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

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

int main(){
int n;
double a=100;
cin>>n;
while(n--){
	a+=a*5/100;
        a=ceil(a);
}
cout<<a*1000;
return 0;
}

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

using namespace std;


int main(){
    int week;
    cin >> week;
    double money =10;
    
    for(int i=0; i<week; i++){
        money=money * 1.05;
    }
    printf("%d\n",int(money+0.9)*10000);
}