Go: package main

import (
	"fmt"
	"math"
)

const (
	INTEREST float64 = 0.05
	DEBT     int     = 100000
)

func main() {
	var x int
	interestDebt := DEBT
	fmt.Scanf("%d", &x)
	for i := 0; i < x; i++ {
		interestCalc := MakeCalcInterest(float64(interestDebt)) + int(interestDebt)
		interestDebt = RoundUp(float64(interestCalc))
	}
	fmt.Printf("%d\n", interestDebt)
}

func MakeCalcInterest(x float64) int {
	return int((x * INTEREST))
}

func RoundUp(x float64) int {
	return int(math.Ceil(x*0.001) * 1000)
}

C++: #include <iostream>

using namespace std;

int main(void){
	int n;
	int debt = 100;
	cin >> n;
	for(int i=0;i<n;i++){
		debt = ((debt*1.05)+0.9);
	}
	cout << debt*1000 << endl;
	return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	long double x=100000 , w ;
	int i , n , y ;
	cin >> n;
		for( i=1 ; i<=n ; i++ ){
		x = x * 1.05 ;
		y = x;
		y = y/100 ;
		x =y;
		x = x/10;
		x = ceil( x );
		x = x*1000;
	}
	cout << x << endl;
}

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

C++: #include<iostream>

int solve( int, int );

int main( void )
{
	int n;

	std::cin >> n;

	std::cout << solve( n, 100000 ) << std::endl;

	return 0;
}

int solve( int n, int debt ){
	int tmp = (int)((( debt * 1.05 ) + 999 ) / 1000 );

	if( n == 1 ){
		return tmp * 1000;
	}

	return solve( n - 1, tmp * 1000 );
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <stdio.h>

using namespace std;

int main()
{
	int m=100000,n;

	cin>>n;
	for(int i=0;i<n;i++){
		m*=1.05;
		if(m%100!=0){
			m/=1000;m++;m*=1000;
		}
	}

	cout<<m<<endl;

	return 0;
}

C++: 
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <string> 
#include <vector> 
using namespace std;

int main(){
	int n,i,ans = 100000,a,risi[2];
	cin >> n;
	for(i = 1;n >= i;i++){
		risi[0] =  ans * 0.05;
		risi[1] = risi[0];
		while(risi[1] >= 1000){risi[1] = risi[1] - 1000;}
		ans = ans + risi[0];
	}
	cout << ans << endl;
}

C++: #include <stdio.h>
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
    int n; int sum=100000;
    cin >> n;
    while(n--)
    {
       sum*=1.05;
       if(sum%1000!=0)sum-=sum%1000,sum+=1000;
    }
    cout << sum << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;
long money = 100000;
void up() {
    int judge = money % 1000;
    //cout << judge << endl;
    if(judge) {
        money -= judge; money += 1000;
    }
}

int main(void) {
    int n; cin >> n;
    for(int r = 0; r < n; r++) {
        money *= 1.05; up();
    }
    cout << money << endl;
    return(0);
}

C++: #include <stdio.h>
 
using namespace std;
 
 
int main(){
    int debt = 100000,n;
    scanf("%d",&n);
 
    for(int i=0;i<n;i++){
        debt=(debt/100)*105;
        if((debt%1000)>0){
            debt+=(1000-(debt%1000));
        }
    }
 
    printf("%d\n",debt);
 
    return 0;
}

C++: #include <iostream>

using namespace std;
int main() {
	int n, total;
	total = 100000;
	cin >> n;
	for(int i = 0; i < n; i++) {
		total *= 1.05;
		if(total % 1000 != 0) {
			total = total - total % 1000;
			total += 1000;
		}
	}
	cout << total << endl;

	return 0;
}

C++: // clang-format off
#include <bits/stdc++.h>
#define int long long
#define main signed main()
// #define main int main()
#define loop(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) loop(i, 0, n)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define prec(n) fixed << setprecision(n)
#define stlice(from, to) substr(from, (to) - (from) + 1)
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
using namespace std;
using pii = pair<int, int>;
using vi = vector<int>;
using vd = vector<double>;
using vc = vector<char>;
using vb = vector<bool>;
using vs = vector<string>;
using vpii = vector<pii>;
using vvi = vector<vi>;
using vvb = vector<vb>;
using vvpii = vector<vpii>;
template<typename A> using fn = function<A>;
constexpr int INF = sizeof(int) == sizeof(long long) ? 1000000000000000000LL : 1000000000;
constexpr int MOD = 1000000007;
constexpr double PI = acos(-1);
template<typename A, typename B> bool cmin(A &a, const B &b) { return a > b ? (a = b, true) : false; }
template<typename A, typename B> bool cmax(A &a, const B &b) { return a < b ? (a = b, true) : false; }
constexpr bool odd(const int &n) { return n & 1; }
constexpr bool even(const int &n) { return !odd(n); }
template<typename V> constexpr typename V::value_type sum(const V &v) { return accumulate(all(v), 0); }
void solve();
main { solve(); return 0; }
// clang-format on

void solve() {
  int n;
  cin >> n;
  int x = 100000;
  rep(i, n) x = x * 21 / 20;
  cout << (x + 5000) / 10000 * 10000 << endl;
}

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

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

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

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

}

C++: #include<iostream>

using namespace std;

double money = 100000;

int i;

int main()
{
	cin>>i;
	for(i;i>0;--i)
	{
		money *= 1.05;
		money = (long)(money/1000+0.99)*1000;
	}
	printf("%.0lf\n",money);
}

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

int main(){
int n;
double a=100;
cin>>n;
while(n--){
	a+=ceil(a*5/100);
}
cout<<a*1000;
return 0;
}

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

C++: #include <iostream>

using namespace std;

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

    cin >> n;

    for (int i = 0; i < n; i++){
        shakkin += (shakkin * 0.05);
        if ( (shakkin % 1000) != 0) {
            shakkin -= (shakkin % 1000);
            shakkin += 1000;
        }
    }

    cout << shakkin << endl;
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <string>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <functional>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long > vll;
typedef vector< vi > vvi;
int main() {
	int n,m=100000;
	cin>>n;
	for(int i=0;i<n;i++){
			m +=m/20;
		if(m%1000!=0){
			m=m-m%1000+1000;
		}
	}
	cout<<m<<endl;
}

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

int main() {
	int weeks, debt = 100000;

	cin >> weeks;
	for (int i = 0;i < weeks;i++) {
		debt *= 1.05;
		if (debt % 1000 != 0) debt = 1000 * (debt / 1000 + 1);
	}
	cout << debt << endl;
	return 0;
}

C++: #include<stdio.h>

int main(){
	int  s=100000;

	int n;
	scanf("%d",&n);


	for(;n--;){
		if(int(s*1.05)%1000==0){
			s=int(s*1.05);
		}else{
			s= int(s*1.05) + (1000- int(s*1.05) % 1000);
		}
	}
	printf("%d",s);

	return 0;
}

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

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

C++: #include<cstdio>

int main() {
    int i, temp;
    int nah = 100000;
    scanf("%d", &i);
    for (; i > 0; i-- ) {
        nah+= nah*5/100;
        temp = nah % 1000;
        if ( temp != 0 ) {
             nah = nah - temp + 1000;
        }
    }
    printf("%d\n", nah);
    return 0;
}