Go: package main

import (
	"fmt"
	"os"
	"bufio"
	"strconv"
	"math"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	
	for scanner.Scan() {
		n, _ := strconv.Atoi(scanner.Text())
		debt := 100000 * math.Pow(1.05, float64(n))
		rounddebt := int(math.Ceil(debt*0.0001)) * 10000
		fmt.Println(rounddebt)
	}
}

C++: #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++) 
#define ALL(n) begin(n),end(n)
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
const int M{ 100000 };
int main()
{
    int N;
    cin >> N;
    int res{};
    REP( i, N )
    {
        res += M * 0.05;
    }
    cout << ( M + res + 9999 ) / 10000 * 10000 << endl;
    return 0;
}

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

int main(){

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

long debt=100000;

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

printf("%ld\n",debt);

return 0;		
}

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



int main(void){
	

	unsigned long int n, sum = 100000;
	long double Ceil;
	cin >> n;

	for (int i = 0; i < n; i++){

		sum /= 1000;
		Ceil = ceil(sum*1.05);
		sum=Ceil*1000;
	}		
	cout << unsigned long int(sum) << 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>
using namespace std;

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

    
    cout <<loan<<endl;
    
    return 0;
}

C++: #include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;

int calc(int n) {
	n *= 1.05;
	if (n % 1000)n = (n / 1000 + 1) * 1000;
	return n;
}
int main() {
	int n; cin >> n;
	int a = 100000;
	rep(i, n) {
		a = calc(a);
	}
	cout << a << 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 = ceil((debt * 1.05) / 1000) * 1000;
	}

	cout << debt << endl;

	return 0;
}

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

int main()
{
	int money = 100000;
	int n;
	cin >> n;
	while (n--)
	{
		money *= 1.05;
	}
	money -= (money % 10000);
	money += 10000;

	cout << money << endl;

	return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

using ll = long long;
using lli = ll int;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


int main()
{
  int n, sum=100000;
  int i, j, k;
  int tot, ans, num;
  
  cin >> n;
  for(i=0; i<n; i++){
    sum += sum*(i+1)*0.05;
    sum = (sum/1000+1)*1000;
  }
  cout << sum << endl;
    return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
	int n;
	double debt = 100000;
	double temp = 100000;
	
	cin >> n;
	
	for(int i = 0;i < n; i++){
		debt *= 1.05;
//		cout << i << "TÚ" << debt << endl;
	}
	
	for(int j = 0;; j++){
		temp += 10000;
		if(temp > debt){
			break;
		}
	}
	
	cout << temp << endl;
}

C++: #include <stdio.h>

int main() {
    int weeks = 0;
    double money = 100.0d;
    scanf("%d", &weeks);

    for (int i = 0; i < weeks; ++i) {
        money *= 1.05d;
        int temp = (int) money;
        if (temp < money) {
            temp++;
        }
        money = temp;
    }

    int result = (int) money;
    result *= 1000;
    printf("%d", result);

    return 0;
}

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

//NAMESPACE
using namespace std;

//CONSTANT
const int64_t INF=INT64_MAX;

//FAST I/O
void init(){cin.tie(0);ios::sync_with_stdio(false);}
//----------------------------------------------------

int64_t solve(int n){
  int64_t dept=100000;

  for(int i=0;i<n;i++){
    dept=(int)(dept*1.07);
    if(dept%1000!=0){
      dept+=(1000-dept%1000);
    }
  }

  return dept;
}

int main(){
  init();

  int64_t n;
  cin >> n;

  cout << solve(n) << 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 = ceil(a*1.05);
	cout << a * 1000 << endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
	int n;
	cin>>n;
	
	int dept=100000;
	
	for(int i=0;i<n;i++){
		dept+=dept/20;
		if(dept%1000)
			dept+=1000-dept%1000;
	}
	cout<<dept<<endl;
	
	return 0;
}

C++: #include <iostream>

using namespace std;

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

	while (cin >> n ){	
		for (; n--; r % 1000 ? r += 1000 - r % 1000: r){
			r *= 1.05;
		} // end for
		cout << r << endl;	
	} // end while

	return 0;
}

C++: #include<stdio.h>
int main(){
    int  s=100000;
    int n;
    scanf("%d",&n);
    for(;n--;){
        if(int(s*1.05)%1000==0){
            s=int(s*1.05);
        }else{
            s= int(s*1.05) + (1000- int(s*1.05) % 1000);
        }
    }
    printf("%d\n",s);
    return 0;
}

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

int main(){
	double money = 100000;
	int n;
	cin >> 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<bits/stdc++.h>
using namespace std;

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

    return 0;
}

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

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

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

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

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

int main(){
    int debt = 100000;
    int week;
    
    cin >> week;
    
    for(int i = 0; i < week; ++i){
        debt = debt * 1.05;
    }

    if(debt % 10000 != 0){
        debt = (debt + 9999) / 10000;
        debt = debt * 10000;
        cout << debt << endl;
    }else{
        cout << debt << endl;
    }

    return 0;
}

C++: #include <iostream>

#define N (1000)

int debt(const int amount, const int weeks)
{
    int ret;
    int fraction; /* 1000円未満額の端数 */
    
    ret = amount;
    for (int i = 0; i < weeks; i++){
        // 利子計算
        ret *= 1.05;
    }
    
    fraction = ret % N;
    
    ret /= N;  // 切り捨てて
    if (fraction != 0){
        // 端数があるなら
        // 切り上げる
        ret++;
    }
    ret *= N;
    
    return ret;
}

int main()
{
    int n;
    
    std::cin >> n;
    
    std::cout << debt(100000, n) << std::endl;
    
    return 0;
}

C++: #include<iostream>
#include<stdio.h>
int main(){
	
	int n,i,a,b,okane=100000;

    std::cin>>n;
	for(i=0;i<n;i++){	
		okane=okane*1.05;
		if(okane%1000!=0){
			a=okane%1000;
			b=1000-a;
			okane=okane+b;
			}

		}
    std::cout<<okane<<std::endl;

	return 0;
}