Go: package main

import "fmt"

var (
	dept    int = 100000
	addDept int = dept / 100 * 5
)

func main() {
	var week int
	fmt.Scan(&week)

	nWeekDept := dept + addDept*week

	if nWeekDept/addDept%2 != 0 {
		nWeekDept += addDept
	}
	fmt.Println(nWeekDept)
}

C++: #include <iostream>

using namespace std;

int debt = 100000;

int main() {
    int n;
    cin >> n;
    while (n--) {
        debt = debt * 105 / 100;
        if (debt % 1000) {
            debt = debt - (debt % 1000) + 1000;
        }
    }
    cout << debt << endl;
}

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

using namespace std;

int main()
{
  int n;
  cin >> n;

  double debt = 100000;
  
  for ( int i = 0; i < n; i++ )
    {
      debt *= 1.05;
      debt = ceil( debt / 1000 ) * 1000;
    }
  cout << debt << endl;
  
  return 0;
}

C++: #include<iostream>

using namespace std;

main(){
  
  int n;
  double rm=100000;//remaining_money
  int i;
  while(cin >> n ){
    for(i=0;i<n;i++){
      
      rm *= 1.05;
      //kiriage
      rm /= 1000;
      rm += 0.9;
      rm =(int)rm;
      rm *= 1000;
    }
    
    cout << rm << endl;
    
  }
  return 0;
  
}

C++: #include<stdio.h>

main(void){
    int money = 100000, num;
    
    scanf("%d", &num);
    
    for( ; num >= 0; num--){
        money += money * 0.05;
    }
    
    printf("%d\n", (money/10000)*10000);

    return 0;
}

C++: #include <stdio.h>
int main(){
    int n,i,kei;
    double kin=100000,ri=1.05;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        kin = kin * ri;
        kei = (int)(kin/1000+0.9);
        kin = kei * 1000;
    }
    kei=kin;
    printf("%d",kei);
	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 * 1.05;
		if (m % 1000 != 0) {
			int work = m % 1000;
			m = m - work + 1000;
		}
	}

	cout << m << endl;

	return 0;

}

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

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int n; cin>>n;
	int ans=100'000;
	for(int i=0;i<n;++i){
		ans=ans*21/20;
		ans=(ans+999)/1000*1000;
	}
	cout<<ans<<"\n"s;
}

C++: #include <iostream>

#include <math.h>

int main(int argc, char** argv)
{
  int n;

  std::cin >> n;

  int x = 100000;

  for (int i = 0; i < n; i ++)
    x = round(x * 1.05 / 1000) * 1000;
  
  std::cout << x << std::endl;
}

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

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

	cin >> get ;

	for( int i = 0 ; i < get ; i ++ )
	{
		debt *= 1.05 ;
		if( debt % 1000 != 0 )
		{
			debt = debt + 1000 - (debt%1000) ;
		}
	}

	cout << debt << endl ;
	return 0 ;
}

C++: #include<stdio.h>

int main(void){
  unsigned int start=100000;
  int i,j,k,n;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    start/=100;
    start*=105;
    start+=999;
    start/=1000;
    start*=1000;
  }
  printf("%d\n",start);
  return 0;
}

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

int main(){
  int a,sum=100000,b;
  cin >>a;

  for(int i=0;i<a;i++){
    b=sum/20;
    if(b%1000==0)sum+=b;
    else sum+=(b/1000+1)*1000;
  }
  cout <<sum<<endl;
  return 0;
}

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

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

C++: #include<stdio.h>

int main(void)
{
	int n,x,m=100000;
	scanf("%d",&n);

	for(x=0;x<n;x++)
	{
		m=m+m*0.05;

		if(m%1000!=0)
		{
			m+=1000-(m%1000);
		}
	}
	printf("%d",m);
}

C++: #include<cstdio>
#include<cmath>
int main()
{
    double ans,n;
    scanf("%lf",&n);
    ans=pow(1.05,n)*1000.0;
    printf("%d0000\n",(int)ans/100+1);
    return 0;
}

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

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

using namespace std;


int main()
{
	int i,n;
	cin >> n;
	
	int gaku = 100;

	for( i = 0; i < n; i++ ) {
		gaku = ceil(gaku * 1.05);
	}
	
	cout << gaku * 1000 << endl;
	return 0;
}

C++: #include <iostream>
int main()
{
  const int BASE = 100000;
  int n, debt = BASE;
  std::cin >> n;
  while (n--) {
    debt = (debt * 1.05 + 999) / 1000;
    debt *= 1000;
  }
  std::cout << debt << std::endl;
  return 0;
}

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

using namespace std;

int main()
{
	int n;
	int money = 100000;
	
	scanf("%d", &n);
	for(int i=0 ; i<n ; ++i){
		money += (int)ceil(money * 0.05 / 1000.0) * 1000;
	}
	
	printf("%d\n", money);
	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 * 105 / 100;
  }
  cout << (x + 5000) / 10000 * 10000 << endl;
}

C++: #include <iostream>

using namespace std;

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

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

        return 0;
}

C++: #include <iostream>

#define N (1000)

int debt(const int amount, const int weeks)
{
    int ret;
    int fraction; /* 1000円未満額の端数 */
    
    ret = amount;
    for (int i = 0; i < weeks; i++){
        // 利子計算
        ret *= 1.05;
    }
    
    fraction = ret % N;
    
    ret /= N;  // 切り捨てて
    if (fraction != 0){
        // 端数があるなら
        // 切り上げる
        ret++;
    }
    ret *= N;
    
    return ret;
}

int main()
{
    int n;
    
    std::cin >> n;
    
    std::cout << debt(100000, n) << std::endl;
    
    return 0;
}

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

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef complex<double> P;
typedef pair<int,int> pii;
#define REP(i,n) for(ll i=0;i<n;++i)
#define REPR(i,n) for(ll i=1;i<n;++i)
#define FOR(i,a,b) for(ll i=a;i<b;++i)

#define DEBUG(x) cout<<#x<<": "<<x<<endl
#define DEBUG_VEC(v) cout<<#v<<":";REP(i,v.size())cout<<" "<<v[i];cout<<endl
#define ALL(a) (a).begin(),(a).end()

#define MOD (ll)(1e9+7)
#define ADD(a,b) a=((a)+(b))%MOD
#define FIX(a) ((a)%MOD+MOD)%MOD

int main(){
  int n;
  cin>>n;
  ll cur = 100000;
  REP(i,n){
    cur *= 1.05;
    if(cur%1000 != 0){
      cur -= cur%1000;
      cur += 1000;
    }
  }
  cout<<cur<<endl;
  return 0;
}