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
	}
	tmp = Ceil(tmp, -4)
	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 <bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
signed main() {
	int n, tmp = 100000;
	cin >> n;
	for (int i = 0; i < n; i++) {
		tmp *= 1.05;
		if (tmp % 1000) {
			tmp -= tmp % 1000;
			tmp += 1000;
		}
	}
	cout << tmp << endl;
	return 0;
}

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

#define FOR(i,a,b) for(long long int i=(a);i<(b);i++)
#define REP(i,n) for(long long int i=0;i<(n);i++)
#define ALL(s) (s).begin(),(s).end()

#define PI 3.14159265358479

typedef long long int ll;
typedef vector<long long int> vi;

int main(){
	ll n,m=100000;
	cin >> n;
	REP(i, n){
		m *= 105;
		m /= 100;
		if (m % 1000 != 0){
			m -= m % 1000;
			m += 1000;
		}
	}
	cout << m << "\n";
}

C++: #include <stdio.h>
#include <string>
#include <string.h>
#include <cstring>
#include <algorithm>

const float a=1.05;

using namespace std;



int main(void)
{
	int debt,week;
	scanf("%d",&week);
	debt=100000;
	for(int loop=1;loop<=week;loop++)
	{
		debt*=1.05;
		if(debt%1000!=0)
		{
			debt=debt-(debt%1000)+1000;
		}
	}
	printf("%d",debt);
	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++: #define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>

using namespace std;

int main()
{
	unsigned int n;
	
	cin >> n;
	
	double a = 100000;
	for (int i = 0; i < n; i++)
	{
		a *= 1.05;
		a /= 1000;
		a = ceil(a);
		a *= 1000;
	}
	cout << a << endl;
	
	return 0;
}

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

int main(){
	std::ios::sync_with_stdio(false);
    std::cin.tie(0);
	
	int n=0;cin>>n;
	double a=100000;
	for(int i=0;i<n;i++){
		a*=1.05;
		a/=1000;a=ceil(a);a*=1000;
	}
	
	cout<<a<<endl;
	return 0;
}

C++: //--------------------------------------------------template----------------------------------------//
//c
#include <stdio.h>
#include <time.h>
#include <math.h>
//c++
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <functional>
#include <cstdlib>
#include <sstream>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <vector>
#include <complex>
#include <cmath>
//c++11
#include <tuple>
#define all(c) ((c).begin(),(c).end())
#define rall(c) (c).rbegin(),(c).rend()
//#define sort(v,n) sort(v,v+n)
//#define vsort(v) sort(v.begin(),v.end())
#define vvsort(v) sort(v.rbegin(),v.rend())
#define ll long long
#define pb(a) push_back(a)
#define fi first
#define se second
#define inf 999999999
using namespace std;
const ll MOD = 1e9 + 7;
const double PI = acos(-1.0);
//---------------------------------------------------------------------------------------------//
int n;

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

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

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

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

C++: #include <iostream>

using namespace std;

int main() {

	int n, debt=100000;

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

	return 0;

}

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

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

int main()
{
    int n, d = 100000;
    cin >> n;
    for(; n-- ;)
    {
       if(int(d*1.05)%1000 == 0) d = (int)d*1.05;
       else
       {
            d = (int)d*1.05 + (1000- int(d*1.05)%1000);
       }
    }
    cout << d << endl;
}

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

long long int ans[110] ;

void init ( ) ;

int main ( )
{
	int N ;
	init ( ) ;
	while ( scanf ( "%d" , &N ) == 1 ) {
		printf ( "%lld\n" , ans[N] ) ;
	}
	return 0 ;
}

void init ( )
{
	ans[0] = 100000 ; 
	for ( int i = 1 ; i < 101 ; i++ ) {
		long long int tmp = ans[i-1] * 105 / 100 ;
		if ( tmp % 1000 > 0 ) {
			long long int s = tmp % 1000 ;
			tmp = tmp + 1000 - s ;
		}
		ans[i] = tmp ;
	}
}

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


int brack(int n){
	int x = 100000;
	int y = 0;
	for (int i = 0; i < n; i++){
		x *= 1.05;
		y = x % 1000;
		if (y != 0){
			x -= y;
			x += 1000;
		}
	}
	return x;
}


int main(){
	int n;
	cin >> n;
	cout << brack(n) << endl;

	return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef pair<ll, int> li;
typedef pair<int, ll> il;
typedef vector<ii> vii;
typedef vector<il> vil;
typedef vector<li> vli;

#define F first
#define S second
#define pb(x) push_back(x)
#define mp(a,b) make_pair(a,b)
#define sz size()
#define all(A)    A.begin(), A.end()
#define mem(a, b) memset(a, b, sizeof(a))
#define f0(i,b)   for(int i=0;i<(b);i++)
#define f1(i,b)   for(int i=1;i<=(b);i++)
#define f2(i,a,b) for(int i=(a);i<=(b);i++)
#define fr(i,b,a) for(int i=(b);i>=(a);i--)
#define rep(i,a,b,c) for(int i=(a);i!=(b);i+=(c))
#define mod 1000000007

#define forr(i,n)    for(i=0; i<n; i++)
#define whilee(i,t)  while(i!=t)
#define  sl(a)  scanf("%lld",&a)
#define  pl(a)  printf("%lld\n",a)

#define scan(x) do{while((x=getchar())<'0'); for(x-='0'; '0'<=(_=getchar()); x=(x<<3)+(x<<1)+_-'0');}while(0)
char _;

//for(auto it =A.begin(); it!=A.end(); it++)
//sort(A.begin(),A.end());
//binary_search(A.begin(),A.end(),x);
//reverse(A.begin(), A.end());
//cout << *max_element(A.begin(), A.end());
//cout << *min_element(A.begin(), A.end());
//count(A.begin(), A.end(), X); //counts the occurrences of X
//distance(A.begin(),A.end());  //distance between first to last element
//accumulate(A.begin(), A.end(), 0); //add
//next_permutation(A.begin(), A.end());
//prev_permutation(A.begin(), A.end());
//swap(S[0], T[0]);
//scanf("%d",&x);
//printf("%d\n",x);

//vector <int> A;
//deque <int> A;
//queue <int> A;
//stack <int> A;
//set <int> A;
//map <int,int> A;
//pair <int,int> A ;
//vector <pair <int,int>> A ;
//bitset<32> bset1;
//char ch;
//string S, T, U;
ll i, j, k, a, b, c, d, f, g, h, l, m, n, p, q, r, s, t, u, v, w, x, y, z, maxx=INT_MIN, minn=INT_MAX, ans=0, sum=0, cnt=0;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);//NULL
    cout.tie(nullptr);//NULL

    cin>>n;

    x=100000;
    while(n--)
    {
        x*=21;
        y=ceil(x/(double)20);
        c =((y%1000==0)? 0 : (1000-(y%1000)));
        x=y+c;
    }
    cout<<x<<endl;
    return 0;
}

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

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