Go: package main

import (
        "fmt"
        "math"
)

var interests [101]float64

func main() {
        var m int
        fmt.Scanf("%d", &m)
        fmt.Printf("%d\n", int(math.Ceil(interest(m)*100))*1000)
}

func interest(m int) (i float64){
        if interests[m] > 0 {
                return interests[m]
        }

        if m == 0 {
                interests[0] = 1.0
                return interests[0]
        }

        if m == 1 {
                interests[1] = 1.05
                return interests[1]
        }
        interests[m] = interest(m/2) * interest(m/2) * interest(m%2)
        return interests[m]
}

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=int(ans+0.999);
        ans=double(ans);
    }
    ans*=1000;
    ans=int(ans);
    cout << ans << endl;
    return 0;
}

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

C++: #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

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

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=int(ans+0.9999999);
        ans=double(ans);
    }
    ans*=1000;
    cout << ans << endl;
    return 0;
}

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

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

int main() {
    int weeks;
    scanf("%d", &weeks);

    int debt = 100000;
    for (int i = 0; i < weeks; i++) {
        debt = debt * 1.05;
        int p = debt / 1000;
        int q = debt % 1000;
        if (q > 0) {
            p += 1;
        }
        debt = p * 1000;
    }
    printf("%d\n", debt);
}

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

int debt_in_weeks(int weeks)
{
    int borrow = 100000;
    for (;weeks != 0 ; weeks--)
        borrow = ceil((borrow * 1.05) / 1000) * 1000;

    return borrow;
}

int main()
{
    int weeks;
    cin >> weeks;
    cout << debt_in_weeks(weeks)<< endl;

    return 0;
}

C++: #include<cstdio>

int main() {
	int n,debt;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		debt = debt + debt*0.05;
	}
	debt = debt - debt % 1000;
	debt = debt + 1000;
	printf("%d\n", debt);

	return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
	int money=100, week;
	cin>>week;
	for(int i=0; i<week; i++) {
		money = ceil(money*1.05);
	}
	cout<<(money*1000)<<endl;
	return 0;
}

C++: #include<iostream>

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

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

int main() {
  int n; cin >> n;
  int ans = 100000;
  while (n--) {
    ans = ans + ceil(ans * 0.05 / 1000) * 1000;
  }
  cout << ans << endl;
  return 0;
}

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

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>
using namespace std;
 
int main()
{
    int n,a = 100000;
    cin >> n;
    for(int i=0;i<n;i++)
    {
        a *= 1.05;
        if(a%1000)
        {
           a += 1000-a%1000;
         }
        
    }
    cout << cur << endl;
     
}

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

int main(){
	int n;
	int x = 100000;
	cin >> n;
	for(int i = 0; i < n; i++){
		x = x*21/20;
		if(x % 1000 != 0){
			x = (floor(x/1000)+1)*1000;
		}
	}
	cout << x << endl;
}

C++: #include <iostream>

using namespace std;

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

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

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

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

C++: #include <stdio.h>

int main(void){
	int i,n;
	int money = 100000;

	scanf("%d",&n);
	for(i = 0;i < n;i++){
		money += money / 100 * 5;
		if(money % 1000 != 0){
			money = money - money %1000;
			money += 1000;
		}
	}
	printf("%d\n",money);

	return 0;
}

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

int main()
{
  int n,dpt=100000;
  cin >> n;
  for(int i=0;i<n;i++){
    dpt /= 20;
    dpt *= 21;
    if(dpt - (dpt/1000)*1000 > 0)dpt = (dpt/1000+1)*1000;
     else dpt = (dpt/1000)*1000;
  }
  cout << dpt << endl;
  
  return 0;
}

C++: 
/* vo00_07.cpp */
#include <iostream>
using namespace std;

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

	cin >> n;
	while (n--) {
		debt *= 1.05;
		if (tmp = debt % 1000) { debt += 1000; }
		debt -= tmp;
	}

	cout << debt << '\n';

	return 0;
}

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

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

C++: #include<stdio.h>

int main(void){


	int n,risi,money=100000;
	
	
	
	int i;

	scanf("%d",&n);

	for(i=0;i<n;i++){
		risi = money*(5.0/100.0);

		money+=risi;

		if(money % 1000 != 0){
			money -= money%1000;
			money += 1000;
		}

	}

	printf("%d\n",money);

	return 0;
}

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

int main(){
	int week, yen=100000, hasuu;
	cin>>week;
	while(week--){
		yen = yen*1.05;
		if(hasuu=yen%1000){
			yen += 1000-hasuu;
		}
	}
	cout << yen <<endl;
	return 0;
}

C++: #include <iostream>
#define debt 100000

using namespace std;

int main(void){

  int n;
  cin >> n;

  int total = debt;
  for( int i = 0 ; i < n ; i++ ){
    total = total * 5 / 100 + total; 
    if( total % 1000 > 0 ){
      total = total / 1000 * 1000 + 1000;
    }
  }
  
  cout << total << endl;

  return 0;
}

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

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
long i,n,t=100;
cin>>n;
for(i=0;i<n;i++){t=ceil(t*1.05);cout<<"..."<<t*1000<<endl;}
cout<<t*1000<<endl;
return 0;
}

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

using namespace std;

int main()
{
  int n, money = 100000;
  while (scanf(" %d ", &n) == 1) {
    for (int i = 0; i < n; i++) {
      money += (double)money * 0.05;
      if (money % 1000 != 0) {
	money += 1000 - money % 1000;
      }
    }
    printf("%d\n", money);
  }
  return 0;
}