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

using namespace std;

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

   cin >> n;

   for(int i = 0; i < n; i++) {       
       v += v * 0.05;
       r = fmod(v, 1000.0);          
        if(r != 0) {
            v += (1000 - r);
        }
   }

   cout << v << endl;

    return 0;

}

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

C++: #include <iostream>
using namespace std;
int main(){
    int a=100000,b=0,t;
    cin>>t;
    if(t==0)cout<<a<<endl;
    else if(t<=100){
    for(int k=1;k<=t;k++){
        b=a*1.05;
        b=(b+900)/1000*1000;
        a=b;
    }
        cout<<b<<endl;

    }}

C++: #include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
	int n;
	int roan = 100000;
	
	cin >> n;

	for (int i = 0; i < n; ++i){
		roan = (int)(roan*1.05);
	} // end for
	roan += 5000;
	roan = (roan/10000)*10000;
	cout << roan << 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 / 20;
		if(m % 1000 != 0) m = (m / 1000 + 1) * 1000;	
	}
	printf("%d\n", m);
}

C++: #include<iostream>
using namespace std;
int main() {
	int n;
	int k, money;
	money = 100000;
	cin >> n;

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

		k = money % 1000;
		if (k > 0) {
			money = money - k + 1000;
		}
	}
	cout << money << endl;
}

C++: #include <iostream>

using namespace std;

int main(){
  int i;
  double money = 100000;
  cin >> i;
  for(; i > 0; i--){
    money += money*0.05;
  }

  cout << money << endl;

  double dif = ((int)money/1000)*1000;
  cout << dif << endl;
  if(money - dif > 0){
    money = dif + 1000;
  }
  cout << money << endl;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
	double a;
	cin>>a;
	int ans=100000;
	for(int b=0;b<a;b++)
	{
		double rev=0;
	   ans=ans*1.05;
	   rev=ans%1000;
	   cout<<rev<<endl;
	   if(rev!=0)
	   ans=ans-rev+1000;
	   cout<<ans<<endl;
		}
		cout<<ans<<endl;
	}

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

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

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

	return 0;
}

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

using namespace std;

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

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

int main() {
	
	int m=100,n;
	cin>>n;
	
	for(int i=0;i<n;i++)m=ceil(m*1.05);
	
	cout<<m<<"000"<<endl;
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <sstream>
#include <cstdlib>
#include <cmath>
 
using namespace std;

int main(){
    double debt = 100000;
    int n;
    cin >> n;
    for(int i = 0; i < n; i++){
    	debt +=  debt * 0.05;
    	debt /= 1000.000;
    	debt = ceil(debt);
    	debt *= 1000.000;
    }
    cout << debt << endl;
    return 0;
}

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

int main(void){
    int i,n;
    double ans;
    cin >> n;
    ans=100.000;
    for(i=0;i<n;i++){
        ans*=1.05;
        ans=(long long int)(ans+0.999);
        ans=(double)ans;
    }
    ans*=1000;
    ans= (long long int)ans;
    cout << ans << endl;
    return 0;
}

C++: /*
    ????????°??§???????????¨????????????
*/

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <limits.h>
#include <iostream>
#include <algorithm>
#include <string>
#include <iterator>
#include <vector>
#include <map>
#include <utility>
#define LLU unsigned long long int
#define LL long long int
#define LD long double
using namespace std;
#define LLUmax ULLONG_MAX
#define LLmax LLONG_MAX
#define dmax INT_MAX
#define vd vector<int>
#define vLL vector<long long int>
#define vLLU vector<unsigned long long int> 
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define debug printf("asd\n")
#define debugd(a) printf("--%d\n",a)
#define debugdd(a,b) printf("--%d %d\n",a,b)
#define debugarr(a,b) for(int i=0 ; i<b ; i++)printf("%d ",a[i]);printf("\n")
#define newline printf("\n")
#define forin(a,b,c) for(int a=b ; a<c ; a++)
#define forde(a,b,c) for(int a=b ; a<c ; a--)


inline void scd(int &a){scanf("%d",&a);}
inline void scdd(int &a,int &b){scanf("%d %d",&a,&b);}
inline void sctd(int &a,int &b,int &c){scanf("%d %d %d",&a,&b,&c);}
inline void scdlld(long int &a,long int &b){scanf("%I64d %I64d",&a,&b);}
inline void sclld(long long int &a){scanf("%I64d",&a);}

#define scarrd(a,b) for(int index=0 ; index<b ; index++)scanf("%d",&a[index])
#define prdlld(a,b) printf("%I64d %I64d",a,b)
#define prdd(a,b) printf("%d %d",a,b)
#define prd(a) printf("%d",a)
#define prarr(a,b) for(int i=0 ; i<b ; i++)printf("%d ",a[i])
#define iniarr(a,b) for(int i=0 ; i<b ;i++)a[i]=0
#define arr(a,b) int *a=(int *)malloc(b*sizeof(int))
#define llarr(a,b) long long int *a=(long long int *)malloc(b*sizeof(long long int))
#define st(a,b) char *a=(char *)malloc(b*sizeof(char))
#define grav 9.8
#define pi 3.14159265

int main()
{
	int a=100000;
	int n;
	scd(n);
	a+=(a*5*n)/100;
	a+=1000*n;
	printf("%d\n",a);
	
	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<cmath>
#include<string>
#include<algorithm>
using namespace std;
#define int long long

signed main(){
        //int a;
        //while( scanf("%lld", &a) != EOF ){}

        int n;
        scanf("%lld",&n);
        int m=100000;
        for(int i=0;i<n;i++){
                m=m*1.05;
                m=((m-1)/1000+1)*1000;
        }
        printf("%lld\n", m);

        return 0;
}

C++: #include <iostream>

int main()
{
    int const FIRST = 100000;
    int n, debt = FIRST;

    std::cin >> n;

    for(int i = 0; i < n; i++) {
        debt /= 20;
        debt *= 21;
        if(debt % 1000 != 0)
            debt = debt / 1000 * 1000 + 1000;
    }

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

    return 0;
}

C++: #include <iostream>
#include <vector>
using namespace std;
int main(){
double n,money = 100000;
int r;
cin >> n;
for(;n;n--)
money*=1.05;
money=money/10000+0.5;
r=(int)money*10000;
cout << r << endl;
return 0;
}