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+=tmp*0.05
	}
	return Round(tmp, -4)
}

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

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

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

C++: 

#include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

using namespace std;
int main()
{
	long double a = 100000;
	int s;
	cin >> s;
	for (int i = 0; i < s; i++) {
		a *= 1.05;
	}
	cout << a;
	return 0;

}

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

int main(void) {
    int n = 5;
    
    int64_t remain = 100000;
    
    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 <iostream>
using namespace std;

int main() {
	// your code goes here
	int n=100000,money;
	cin >> money;
	for(int i=0;i<money;i++){
		n*=1.05;
		n+=999;
		n-=n%1000;
	}
	cout << n << endl;
	return 0;
}

C++: #include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{   
    int a;
    int x = 100;
    for (; a > 0; a--) {
        x = ceil((float)x * 1.05);
        printf("%d\n", x);
    }
    printf("%d\n", x * 1000);
    return 0;
}

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

using namespace std;

void calc_m(int *Money, int n){
  int org = 100000;
  Money[0] = org;
  for(int i=1;i<100;i++){
    Money[i] = Money[i-1]*1.05;
    double tmp = ceil((double)Money[i]*pow(10.0, -3));
    Money[i] = (int)tmp*pow(10.0, 3);
  }
}
  

int main(){

  int Money[100];
  calc_m(Money, 100);
  
  int n;
  
  while(cin >> n){
    cout << Money[n] << endl;
  }

}

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 << (int)money << endl;
	
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(void) {
	int n;

	cin >> n;

	int debt = 100000;
	for (int i = 1; i <= n; i++) {
		debt = (debt * 1.05);
		if (debt % 1000) {
			debt /= 1000;
			debt *= 1000;
			debt += 1000;
		}
	}

	cout << debt << endl;

	return 0;
}

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

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

  scanf("%d", &n);
  for (int i = 0; i < n; i++){
    debt *= 1.05;
    if (debt % 1000 != 0){
      debt = (debt / 1000 + 1) * 1000;
    }
  }
  printf("%d\n", debt);

  return (0);
}

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

using namespace std;

int main(void){
	int debt = 100000;
	float const rate = 0.05;
	int term = 0;
	cin >> term;
	for (int i=0; i<term; ++i){
		float tmp = debt * (1 + rate) / 1000;
		debt = (int)(ceil(tmp) * 1000);
	}
	cout << debt << endl;
	return 0;
}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  int n,ten1=100000,ten2;
  cin>>n;
  rep(i,n){
    ten1+=ten1/20;
  }
  ten2=ten1/1000*1000;
  if(ten1!=ten2)ten2+=1000;
  cout<<ten2<<endl;
}

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

int main(void) {
    int n = 5;
    
    int64_t remain = 100000;
    
    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 <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    int n;
    cin>>n;
    ll a=100000;
    while (n--) {
        a=(a*105)/100;
        a=(a+999)/1000*1000;
    }
    cout<<a<<endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

int roundUp(int x, int index);

int main(void)
{
    int i;
    int n;
    double intrst;
    int debt;
    
    cin >> n;
    
    debt = 100000;
    intrst = 0.05;
    for (i = 0; i < n; i++) {
        debt *= 1.0 + intrst;
        debt += 900;
        debt /= 1000;
        debt *= 1000;
    }
    cout << debt << endl;
    
    return 0;
}

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

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

C++: #include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;
int main(){
  int n;
  cin>>n;
  double m = 100000;
  for(int i = 0; i < n; i++){
    m*=1.05;
    m/=1000;
    m=ceil(m);
    m*=1000;
   // cout<<i<<','<<m<<endl;
	//printf("%.0lf\n",m);  
}
  cout<<(int)m<<endl;
}

C++: #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
using namespace std;
static const double EPS = 1e-5;
typedef long long ll;
#define FOR(i,n) for(i=0;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
	int n;
	cin>>n;
	double d=100;
	rep(i,n){
		d*=1.05;
		d=(int)(d+0.99999);
	}
	cout<<d<<"000"<<endl;
	return 0;
}

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

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;
	int money = 100000;

	cin >> N;
	rep(i,N) {
		money = (money + money * 0.05);
	}
	string a_str = to_string(money);
	vector<char> strs;

	for (int i = a_str.size()-1; i >= 0; i--) {
		strs.push_back(a_str[i]);
	}
	rep(i,4) {
		strs[i] = '0';
	}
	strs[4] = strs[4] + 1;
	/*
	rep(i,strs.size()) {
		//cout << strs[i];
	}
	*/

	vector<char> strs2;
	for (int i = strs.size()-1; i >= 0; i--) {
		cout << strs[i];
	}
	cout << endl;

	return 0;
}