Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextInt() int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func calc(n int) float64 {
	tmp := 100000.0
	for i := 0; i < n; i++ {
		tmp *= 1.05
		tmp = ceil(tmp, -3)
	}
	return tmp
}

func ceil(f float64, places int) float64 {
	shift := math.Pow(10, float64(places))
	return math.Ceil(f*shift)/shift
}

func main() {
	scanner.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(int(ans))
}

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

int main(void)
{
  int n;
  cin >> n ;
  int me=100000;
  for(int i =0;i < n;i++){
    me *= 1.05;

    if(me % 1000 != 0){
      me += 1000 - (me % 1000);
    }
  }
  cout << me << endl;
}

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

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

C++: #include <iostream>
using namespace std;
int StartDebt = 100000;

int main()
{
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		StartDebt *= 1.05;
	}
	if(StartDebt % 10000 != 0){
		StartDebt = 10000 * (StartDebt / 10000 + 1);
	}
	cout << StartDebt << endl;
	return 0;
}

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

using namespace std;

int main() {
    int n;
    double m = 100;
    cin >> n;
    while (n--) {
        m = ceil(m * 1.05);
    }
    cout << m * 1000 << endl;

    return 0;
}

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

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

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

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

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

int main(){
  int n,ans;
  double total;
  double check;

  scanf("%d",&n);
  total = 100000.0;
  for(int i=0;i<n;i++){
    total = total*1.05;
    check = ceil(total/1000.0);
    total = check*1000.0;
  }

  ans = total;
  printf("%d\n",ans);

  return 0;
}

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

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

C++: #include "bits/stdc++.h"

#define REP(i,num) for(int i=0;i<(num);++i)
#define ALL(c) c.begin(),c.end()
#define PRINTALL(c) for(auto& x:c){cout<<x<<' ';}cout<<endl;
#define PAIRCOMP(c,comp) [](const pair<ll,ll>& lhs,const pair<ll,ll>& rhs){return lhs.c comp rhs.c;}

using namespace std;
using ll = long long;

constexpr ll atcoder_mod = 1e9+7;

template<typename T=int>
T in(){T x; cin >> x; return (x);}
template<typename T=int,typename C=vector<T>>
C vecin(int N){C x(N);REP(i,N){x[i]=in<T>();}return move(x);}

void vout(){cout << endl;}
template<typename Head,typename... Tail>
void vout(Head&& h,Tail&&... t){cout << ' ' << h;vout(forward<Tail>(t)...);}
void out(){cout << endl;}
template<typename Head,typename... Tail>
void out(Head&& h,Tail&&... t){cout << h;vout(forward<Tail>(t)...);}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	ll M=100000;
	int N=in();
	REP(i,N){
		ll DM = (ll)(M*1.05);
		ll f = DM%1000;
		if(f){
			DM = DM-f+1000;
		}
		M = DM;
	}
	
	out(M);
	return 0;
}

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

int main() {
	int n=0;
	while(cin >> n){
		if(n==0)	break;
		int m=100000;
		while(--n>=0){
			m+=m*0.05;
			m+=(m%1000==0?0:1000);
			m/=1000;	m*=1000;
		}
		cout << m <<endl;
	}
	return 0;
}

C++: #include <iostream>

int main()
{
        int n, money = 100000;
        std::cin >> n;
        while(n--)
                money += money*5/100, money = (money / 1000 + ((money % 1000)?(1):(0))) * 1000;
        std::cout << money << std::endl;
        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(){
  int n;
  while(cin >> n){
    int cur = 100000;
    for(int i=0;i<n;i++){
      cur = 1.05*cur;
      cur = cur/1000*1000;
    }
    cout << cur << endl;
  }
}

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<string.h>

main(void){
    int money = 100000, num;
    
    scanf("%d", &num);
    
    for( ; num >= 0; num--){
        money += money * 0.05;
    }
    
    printf("%d\n", money);

    return 0;
}

C++: #include <iostream>
#include <cstdio>
using namespace std;
typedef long long l;
int main(void) {
    int n; cin >> n;
    l now = 100000;
    for(int r = 0; r < n; r++) {
        now += now / 20; //5/100を掛けるので
        //もし1000円未満が0でなければ、繰り上げを行う。
        if(now % 1000 != 0) now = now - (now % 1000) + 1000;
    }
    cout << now << endl;
    return(0);
}

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

int main(){
	int s=100000,n;
	
	cin >> n;
	
	for(int i=0;i<n;i++){
		s*=1.05;
		if(0!=s%1000) s = (s / 1000 + 1) * 1000;
	}
	
	cout << s <<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/20;
	}
	int lower = debt % 10000;
	debt -= lower;
	if(lower >= 5000)
		debt += 10000;

	cout << debt << endl;

	return 0;
}

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

using namespace std;

int main(){
        char str [21];

        cin >> str;

        for(int i = strlen(str)-1; i >= 0; i--){
                cout << str[i];
        }
        cout << endl;
}

C++: include <iostream>
# include <stdio.h>
# include <math.h>
using namespace std; 
 
int main()
{   int n; cin>>n; float newamount=100000;  

	for(int i=0;i<n;i++){
    float copy=newamount*21/20;
     copy=ceil(copy/1000);
     copy=copy*1000;
     newamount=copy;
	}
	cout<<ceil(newamount);
    return 0;
}

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

int main()
{
	int money = 100000;
	int n;
	cin >> n;
	while (n--)
	{
		money += 5000;
	}
	if (money % 10000 != 0)
	{
		money -= (money % 10000);
		money += 10000;
	}
	cout << money << endl;

	return 0;
}

C++: #include<iostream>

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

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

int main(){
	int n, i;
	int result = 100000;
	
	cin >> n;

	for (i = 0; i < n; i++) {
		result += result*0.05;
		if(result - (result/1000*1000) > 0){
			result = result/1000*1000+1000;
		}
	}
	
	cout << result << endl;

	return 0;
}

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

int main(){
	int n = 0;
	int m = 100000;
	
	scanf("%d", &n);
	
	for( ; n != 0; n--){
		m = (int)(m * 0.00105) * 1000;
		m += 1000;
	}
	printf("%d\n", m);
	
	return 0;
}

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

using namespace std;

signed main(){
    int n;
    double ret = 100000;
    scanf( "%d", &n );
    while( n > 0 ){
        ret *= 1.05;
        ret = ceil( ret / 1000 ) * 1000;
        n--;
    }
    printf( "%.1f\n", ret  );
    return 0;    
}