Go: package main
import (
	"fmt"
	"os"
	"strconv"
	"bufio"
	"math"
)

var sc = bufio.NewScanner(os.Stdin)

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

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp*=1.05
		// tmp = Ceil(tmp, -4) なぜかうまくいかない
		tmp = Ceil(tmp, -3)
		// fmt.Printf("now tmp: %d\n", int(tmp))
	}
	return tmp
}

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

func next()string{
	sc.Scan()
	return sc.Text()
}

func nextInt()int{
	a, _ := strconv.Atoi(next())
	return a
}

C++: #include <cstdio>
#include <iostream>
#include <cmath>
#include <ctype.h>
#include <string> 
#include <sstream>
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <map>
#include <queue>
#include <utility>
#include <vector>
#include <set>
#include <list>
#include <cstring>
#include <stack>
   
using namespace std;

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

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

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

	cin >> n;
	while (n--) 
		debt = (debt + 999) / 1000 * 1000;
	cout << debt << endl;

	return 0;
}

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

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl;
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    int n;
    cin >> n;
    int b = 100000;
    rep(i, n)
    {
        b = b * 1.05;
        if (b % 1000 != 0)
        {
            b = (int)(b / 1000 + 1) * 1000;
        }
    }
    OP(b)
    return 0;
}

C++: #include<iostream>
using namespace std;
 
int main() {
    int d = 100000;
    int n;
    cin >> n;
    while(n-- > 0) {
        d *= 1.05;
        if(d % 1000) {
            d = (d / 1000 + 1) * 1000;
        }
    }
        cout << d << endl;
    return 0;
}

C++: #include<iostream>
#include<cmath>
#include<cstdio>
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>
#include <cstdlib>
#include <cmath>
using namespace std;
typedef long long ll;

ll calcDebt(ll debt)
{
    debt = debt * 1.05;
    debt = ceil(debt / 1000) * 1000;
    return debt;
}

int main()
{
    int n;
    ll debt = 100000;
    cin >> n;
    for(int c = 0; c < n; c++)
        debt = calcDebt(debt);
    cout << debt << endl;
    return EXIT_SUCCESS;
}

C++: #include <algorithm>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <cctype>
#include <iostream>
#include <set>
#include <string>
#include <queue>
#include <map>
using namespace std;
int size(string x){
	string::size_type size=x.size();
	return size;
}
#define fu(l,k) for(int i=l;i<k;i++)
#define fd(l,k) for(int i=l;i>k;i--)
#define fi first
#define se second
typedef  vector<string> vs;
typedef  vector<int> vi;
double pi(){
	return M_PI;
}
typedef set<int> set_i;
typedef set<string> set_s;
int main(){
	int n;
	int ss=100000;
	cin>>n;
	fu(0,n){
		ss=ss*1.05;
		if(ss%1000!=0) ss=ss/1000*1000+1000;
	}
	cout<<ss<<endl;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  int cnt;
  long long int ans=100000;
  for(int i=0;i<n;++i){
    ans*=105;
    ans/=100;
    cnt=ans%1000;
    ans=ans-cnt;
    if(cnt>=1)
      ans+=1000;
  }
  cout<<ans<<endl;
}

C++: #include <iostream>

using namespace std;


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

	cin >> n;

	while(n > 0){
		debt *= 1.05;
		debt += (debt % 1000) ? 1000 - (debt % 1000) : 0;
		n--;
	}

	cout << debt << endl;

	return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(void){
   int a,ans;
   float b = 100000.0f;
   std::cin >> a;
   for(int i = 0; i < a; i++){
       b *= 1.05f;
       b /= 1000;
       double c = ceil(b);
       b = c * 1000;
       std::cout << b << std::endl;
   }
    
}

C++: a=1e5;main(N){scanf("%d",&N);while(N--)a*=1.05,a+=(a%1000)?1e3-a%1000:0;a=!printf("%d\n",a);}

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

int main()
{
	double debt = 100000.0;
	int N;

	cin >> N;

	for (; N > 0; N--){
		debt *= 1.05;

		debt /= 1000;
		debt = ceill(debt);
		debt *= 1000;
	}

	cout << debt ;

	return 0;
}

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

#include <math.h>

int main(){

	int n=0;
	double syakkin = 100000.0;

	cin >> n;


	for (int i = 0; i < n; i++){
		syakkin = syakkin * 1.05;
		if (long(syakkin) % 1000 != 0){
			syakkin = syakkin - double(long(syakkin) % 1000) + 1000.0;
		}
		//cout << syakkin << endl;
	}
	
	cout << syakkin << endl;

	return 0;
}

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

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

int main(){

	int a = 100000;
	int b = 0;
	float c = 0.05;
	int n = 0;

	scanf("%d",&n);

	if (n > 100)
	{
		n = 100;
	}

	b = a * c;

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

	a = int(a / 1000) * 1000;

	printf("%d\n",a);

	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);
	return 0;
}

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

C++: #include<iostream>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<numeric>
#include<climits>
#include<ctime>
#include<cstring>
#define REP(i,p,n) for(int i=p;i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))
#define all(c) (c).begin(), (c).end()

using namespace std;
template<class T> inline void chmax(T& a, T b) { if(b > a) a = b; }
template<class T> inline void chmin(T& a, T b) { if(b < a) a = b; }

int main() {
	int N;
	double money = 100000;

	cin >> N;
	rep(i,N) {
		money = money * 1.05;
		money = ceil(money/1000) * 1000;
	}
	cout << money << endl;
	
	return 0;
}

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;
int main()
{
    int M{ 100000 };
    int N;
    cin >> N;
    REP( i, N )
    {
        M = (int)( M * 1.05 + 999 ) / 1000 * 1000;
    }
    cout << M << endl;
    return 0;
}

C++: #include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <string.h>

using namespace std;

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

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

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

  printf("%d",(int)a*1000);
}