Go: package main

import "fmt"

func roundUp100(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 = roundUp100(dept)
	}

	fmt.Println(dept)
}

//問題文が理解できていない感

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

int n;
double rent = 100000;

int main()
	{
		cin>>n;
		for(int i=0;i<n;i++)
		{
		 rent = rent *1.05 ;
		 rent = rent /1000;
		 rent = rent + 0.9;
		 rent = (int)rent;
		 rent *= 1000;
		}
		printf("%.0lf",rent);
		return 0;
	}

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

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

    long loan = 100000;

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

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

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

int main(){
	int n;
	int m = 100000;
	cin >> n;
	for(int i = 0; i < n; ++i){
		m = (m*1.05+999)/1000;
		m = m*1000;
	}
	cout << m;
	return 0;
}

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

int main()
{
    int n, i;
    float Kdebt = 100;
    
    scanf("%d", &n);
    
    for (i = 1; i <= n; i++) {
        Kdebt = ceil(Kdebt * 1.05);
    }
    
    printf("%d\n", (int)Kdebt * 1000);
    
    return 0;
}

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

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

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

using namespace std;

void keisan(int *n){
	int kari1,kari2;

	kari1 = *n * 1.05;
	if((kari1 % 1000) > 0) {
		kari2 = kari1 / 1000;
		*n = kari2 * 1000 + 1000;
	} else {
		*n = kari1;
	}
}

int main() {
	int syakkin = 100000;
	int a;

	cin >> a;

	for (int i = 0; i < a; i++){
		keisan(&syakkin);
	}

	cout << syakkin << endl;

	return 0;

}

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

int n;//n週間
double sum;//n週間後の借金

int main(){
  sum = 100000;
  scanf("%d",&n);
  for(int i= 0;i < n;i++){
    sum += 0.05*sum;
    sum = ceil(sum/1000)*1000;
}
  
  int ans =(int)sum;
  printf("%d",ans);
}

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

int main()
{
	int i, n;
	int money=100000;
	
	cin >> n;
	
	for(i=1; i<=n; i++){
		money *= 1.05;
		money = (money+999) / 1000 * 1000;
	}
	cout << money;
		
	return 0;
}

C++: #define scanf_s scanf
#include <stdio.h>
#include <string>
#include <iostream>
using namespace std;
#define MAX 20
int main(void)
{
	int n, sum = 100000;
	scanf_s("%d", &n);
	for (int i = 0; i < n; ++i) {
		sum += sum * 0.05;
		if (sum % 1000 != 0) {
			sum += 1000 - sum % 1000;
		}
	}
	printf("%d\n", sum);
}

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

C++: #include <iostream>

using namespace std;

void solve()
{
	int N;
	cin >> N;
	double sum = 100000;
	for(int i = 0; i < N; ++i)
	{
		sum *= 1.05;
		double temp = (int)sum % 1000;
		if(temp)
		{
			sum += 1000 - temp; 
		}
	}
	cout << sum << endl;
}

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

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
typedef long long int ll;

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

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

int main()
{
    int n = 0;                                          //n習慣
    int debt = 100000;                                  //10万借金

    cin >> n;                                           //入力

    for( int i = 0; i < n; i++ )                        //n回繰り返す
    {
        debt = debt * 1.05;                             //5%増える
        if( debt % 1000 != 0 )                     //1~999は切り上がる
            debt = ( debt / 1000 + 1 ) * 1000;
    }

    cout << debt;

    return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
     int loan = 100000;
    int week;
    cin >> week;
    for(int i=0;i<week;i++) {
        loan *= 1.05;
    }
    double tmp = (double)loan / 10000;
    tmp += 0.5;
    loan = (int)tmp;
    loan *= 10000;
    cout << loan;
}

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n;
    cin>>n;
    int d=100000;
    for(int i=0; i<n; i++) {
        d+=d/20;
        d+=999;
        d-=d%1000;
    }
    cout<<d<<'\n';
    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 <iostream>
int main(void){
  int n,ans=100000;
  std::cin>>n;
  for(int i=0;i<n;i++)
    ans*=1.05;
  int t=ans%1000;
  ans=ans-t+1000;
  std::cout<<ans<<std::endl;
  return 0;
}

C++: #include <stdio.h>

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

	scanf("%d", &n);
	for(int i=0 ; i<n ; i++){
		money *= 1.05;
		if(money%1000 != 0)money += 1000 - (money%1000);
	}
	printf("%d", money);

	return 0;
}

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

using namespace std;

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

C++: #include <stdio.h>

int main(void){
int n;
scanf("%d",&n);
int coin=100000;
for(int m=0;m<n;m++){
coin*=1.05;
coin=(coin/1000)*1000+((coin%1000)>0? 1000:0);
}
printf("%d\n",coin);
return 0;
}

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

using namespace std;

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

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

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

C++: #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#pragma warning(disable:4996)

int main()
{

	int Debt = 100000;
	int Weeks = 0;
	scanf("%d", &Weeks);

	for (int nCnt = 0; nCnt < Weeks; nCnt++)
	{
		Debt += Debt * 0.05f;
		if (Debt % 1000 > 0)
			Debt += 1000 - (Debt % 1000);
	}

	printf("%d", Debt);

	return 0;
}

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

int n,i;
double debt=100;
int main(){
	scanf("%d",&n);
	for(i=0;i<n;i++){
	debt*=1.05;
	debt=ceil(debt);
	}
	printf("%.0f",debt*1000);
}

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

using namespace std;


int main()
{
	int i,n;
	cin >> n;
	
	int gaku = 100;

	for( i = 0; i < n; i++ ) {
		gaku = ceil(gaku * 1.05);
	}
	
	cout << gaku * 1000;

	return 0;
}

C++: #include <iostream>

int main(int argc, char** argv) {
	int n, balance, i, unit;
	double interest;
	balance = 100000;
	interest = 0.05;
	unit = 1000;
	std::cin >> n;
	for(i = 0; i < n; i++) {
		balance *= (1.00 + interest);
		if (balance % unit) {
		    balance += unit - (balance % unit);
		}
	}
	std::cout << balance << std::endl;
}

C++: #include<iostream>
using namespace std;
int main(){
	int moto=100,syuu;
	cin>>syuu;
	for(int abc=0;abc<syuu;abc++){
		if(moto%20!=0){
			moto=moto*1.05+1;
		}else{
			moto*=1.05;
		}
	}
	cout<<moto*1000<<endl;
	return 0;
}