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(int(ans))	// intにしないと指数つき表現になってしまう
}

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 next()string{
	sc.Scan()
	return sc.Text()
}

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

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<math.h>
#include<iomanip>
#include<set>
#include<numeric>
#include<cstring>
#include<cstdio>
#include<functional>
#include<bitset>
#include<limits.h>
#include<cassert>
#include<iterator>
#include<complex>
#include<stack>
#include<sstream>
#include<iterator>
using namespace std;
typedef  long long int lint;
typedef pair<int, int> IP;
typedef pair<lint, lint> LLP;
typedef pair<char, char>CP;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n; i >= 0; i--)
#define sort(v) sort((v).begin(), (v).end())
#define reverse(v) reverse((v).begin(), (v).end())
#define upper(v,hoge) upper_bound(v.begin(),v.end(),hoge)
#define lower(v,hoge) lower_bound(v.begin(),v.end(),hoge)
#define llower(v,hoge) *lower_bound(v.begin(), v.end(), hoge)
#define lupper(v,hoge) *upper_bound(v.begin(), v.end(), hoge)

int main() {
	int N;
	cin >> N;
	lint now = 100000;
	rep(i, N) {
		now += now * 5/100;
		now = now / 1000 * 1000 + 1000 * bool(now % 1000);
	}
	cout << now << endl;
}

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

int main(void) {
    int64_t remain = 100000;
    
    int n;
    std::cin >> n;
    
    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 <stdio.h>


int main(void){
    int debt=1000; // *100yen
    int n;

    scanf("%d", &n);
    for (int i=0; i<n; i++){
        debt *= 1.05;
        if (debt % 10){
            debt += (10 - (debt % 10));
        } 
    }
    printf("%d000", debt);
    return 0;
}

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

int RoundUp(int Integer, int Power)
{
	double Place = pow(10, Power);
	return Place * ceil(Integer / Place);
}

int main()
{
	int Debt = 100000;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		Debt = RoundUp(1.05 * Debt, 3);//?????¬???????????????????????±????????§??????????????????????????????????????????
	}
	cout << Debt << endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int n,k;
  double  money;
  money = 100000;
  cin >> n;
  
  for(int i = 0;i < n;i++){
    money = money * 1.05;
  
  k = money / 1000;
  k = k * 1000;
  if(money -k > 0){
    k =  k+1000;
     } 
  money = k;
  }
  cout << k << endl;
}

C++: #include<cstdio>
int main(void){
  int n,money,money1;
  money=100000;
 scanf("%d",&n);
 while(n>0){
   money=money+money*0.05;
   n--;
 money1=money;
 money=money%1000;
 if(money!=0){
   money1=money1-money+1000;
 }
 else if(money==0){
   money1=money1-money;
 }
 money=money1;
 }
 printf("%d\n",money);

  return 0;
}

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

int main(){
	int week,a,b,ans,aans;
	cin>>week;
	a=100000*0.05;
	b=week+1;
	a*=b;
	ans=100000+a;
	aans=ans/1000;
	aans=ans*1000;
	if(aans!=ans)aans+100;
	cout<<aans<<endl;
}

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

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

int f_debt(int n)
{
	n *= 1.05;
	if((n % 1000) != 0)
	{
		n = n - (n%1000) + 1000;
	}
	return n;
}


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

	for(int j=0;j<i;j++)
	{
		debt = f_debt(debt);
	}
	cout << debt << endl;
	return 0;
}

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

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	int n;
	cin >> n;
	
	int m = 100000;
	
	for(int i = 0; i < n; ++i){
		m *= 1.05;
		if(m % 1000 != 0)
			m += 1000 - m % 1000;
	}
	
	cout << m << endl;
	
	return 0;
}

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

int main(void){
    double debt = 100; //  x100
    int n;
    
    scanf("%d",&n);
    for (int i=0; i<n; i++){
        printf("%d000\n", (int)debt);
        debt *= 1.05;
        debt = ceil(debt);
    }
    printf("%d000\n", (int)debt);
}

C++: #include <iostream>
#include<math.h>
#include<iomanip>
#include<vector>
#include<algorithm>
#include<functional>
using namespace std;

int main()
{
    int  a=0,b=0,i=0;
    b=100000;
    cin >> a;
    for(i=0;i<a;i++){
        b=b*1.05;
        b=((b-1)/1000);
        cout << b << endl;
        b=b*1000+1000;

    }

    cout << b << endl;



    //cout << endl;

return 0;

}

C++: #include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
typedef long long LL;
int main(){
	LL n;
	cin>>n;
	LL ans=100000;
	REP(i,n){
	    ans*=1.05;
	    if(ans%1000!=0){
	       ans/=1000;
	       ans++;
	       ans*=1000;
	    }
	}
        cout<<ans<<endl;
	return(0);
}

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

int main()
{
	double d = 100000.0;
	int n;
	cin >> n;
	for(int i=0; i<n; i++){
		d *= 1.05;
		d /= 1000.0;
		d = ceil(d);
		d *= 1000;
	}
	cout << (int)d << '\n';
}

C++: #include<iostream>

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

	std::cout << debt << std::endl;

	return 0;
}

C++: #include<cstdio>

int main() {
	int n;
	double debt=100000;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		debt = debt + debt*0.05;
		debt = debt - (int)debt % 1000;
		debt += 1000;
	}
	printf("%d\n", (int)debt);

	return 0;
}

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

int main() {
	int week;
	cin >> week;
	int debt = 100000;
	while (week--)
	{
		int rem = debt % 20000;
		debt = ((int)(debt * 1.05) / 1000) * 1000;
		if (rem > 0) { debt += 1000; }
	}
	cout << debt << endl;

	return 0;
}

C++: #include <cstdio>
#include <cstdlib>
 
int main(){
 int n;
 scanf("%d",&n);
  
 int ans = 100000;
 for(int i = 0;i < n;i++){
  ans += 100000 * 0.05;
  if(ans % 1000 > 0) ans = ans - (ans % 1000) + 1000;
 }
 printf("%d\n",ans);
 return 0;
}

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

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

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 <algorithm>
#include <cmath>
using namespace std;

int main() {
  int n;
  while(cin >> n) {
    int m = 100000;
    while(n--) {
      m = (int)(ceil(m*1.05/1000.0)*1000);
    }
    cout << m << endl;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

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

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

#define INTEREST	5

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

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