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>
using namespace std;

int main()
{
  int debt=100000;
  double interest=1.05;
  int week=0;

  cin>>week;

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

  cout<<debt<<endl;

  return 0;
}

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

int main(){
  int n, debt=100000;
  cin >> n;

  while(n--){
    debt = debt*105/100;
    if(debt % 1000 != 0)
      debt+=1000;
    debt /= 1000;
    debt *= 1000;
  }
  cout << debt << endl;
  return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{

	int n;
	cin >> n;

	int d = 100000;

	for (int i = 0; i < n; ++i)
	{
		d = static_cast <int> (static_cast <double> (d) * 1.05);
		if (d % 1000 > 0)
		{
			d = d - (d % 1000) + 1000;
		}
	}

	cout << d << endl;

	return 0;
}

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

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

	cin >> n;

	for (int i = 0; i < n; i++) {
		bor_money *= 1.05;
	}
	if (5000 <= (bor_money % 10000)) {
		bor_money /= 10000;
		bor_money += 1;
		bor_money *= 10000;
	}
	cout << bor_money << endl;
    return 0;
}

C++: #include <string>
#include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
#include <iomanip>


using namespace std;

typedef unsigned long long ull;
int main(void) {
	ull d = 100000;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		d = d * 105 / 100;
		if(d % 1000 != 0)
			d += 1000 - d % 1000;
	}
	cout << d << endl;
}

C++: #include<iostream>

using namespace std;

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

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

int main(){
  int i,j,k;
  int n;
  double  money = 100;

  cin>>n;

  for(i=0;i<n;i++){
    money += money*0.05;
    money = ceil(money);

  }

  cout<<money*1000<<endl;

  return 0;
}

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

int main() {
    int d = 100000;
    int n;
    cin >> n;
    while(n-- > 0) {
        d *= 1.05;
        if(d % 1000) {
            d = (d / 1000 + 1) * 1000;
        }
    }
        cout << d << endl;
    return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <string>

int main(int,char**){
	int deb(100000);
	int n;
	int tmp;
	std::cin >> n;
	while(n--){
		deb*=1.05;
		if(deb%1000) {
			deb/=1000;
			++deb;
			deb*=1000;
		}
	}
	std::cout << deb <<std::endl;
	return 0;
}

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

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

    cin >> n;

    for(int i=1; i<=n; i++){
        result *= 1.05;
        result = (result + 999) / 1000 * 1000;
    }

    cout << result << endl;

    return 0;

}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
using namespace std;

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

C++: #include <iostream>

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

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

int main () {
    int n, i;
    double a = 100000;
    cin >> n;
    for(i=0;i<n;i++) {
        a *= 1.05;
        while(a%1000!=0) {
            a += 1;
        }
    }
    cout << a << endl;
}

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

int main()
{
	int n;
	double debt = 100, risi = 0.05;

	cin >> n;
	for(int i = 0;i < n;i++){
		debt += debt * risi;
		debt = ceil(debt);
	}

	cout << debt * 1000 << endl;

	return 0;
}

C++: #include<iostream>

using namespace std;

long long HELL(int n){
	if(n==0){return 100000;}
	return ((HELL(n-1)*21/20+999)/1000)*1000;
}

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

	return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
	int loan = 100000;
	int n;
	
	cin >> n;
	for (int i = 0; i < n; i++){
		loan *= 1.05;
		if (loan % 1000 != 0){
			loan += 1000 - (loan % 1000);
		}
	}
	cout << loan << 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 = static_cast<int>(debt * 1.05);
        if (debt % 1000 != 0) {
            debt = (debt / 1000 + 1) * 1000;
        }
    }
    cout << debt << endl;
}

C++: /*
    ????????°??§???????????¨????????????
*/

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <limits.h>
#include <iostream>
#include <algorithm>
#include <string>
#include <iterator>
#include <vector>
#include <map>
#include <utility>
#define LLU unsigned long long int
#define LL long long int
#define LD long double
using namespace std;
#define LLUmax ULLONG_MAX
#define LLmax LLONG_MAX
#define dmax INT_MAX
#define vd vector<int>
#define vLL vector<long long int>
#define vLLU vector<unsigned long long int> 
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define debug printf("asd\n")
#define debugd(a) printf("--%d\n",a)
#define debugdd(a,b) printf("--%d %d\n",a,b)
#define debugarr(a,b) for(int i=0 ; i<b ; i++)printf("%d ",a[i]);printf("\n")
#define newline printf("\n")
#define forin(a,b,c) for(int a=b ; a<c ; a++)
#define forde(a,b,c) for(int a=b ; a<c ; a--)


inline void scd(int &a){scanf("%d",&a);}
inline void scdd(int &a,int &b){scanf("%d %d",&a,&b);}
inline void sctd(int &a,int &b,int &c){scanf("%d %d %d",&a,&b,&c);}
inline void scdlld(long int &a,long int &b){scanf("%I64d %I64d",&a,&b);}
inline void sclld(long long int &a){scanf("%I64d",&a);}

#define scarrd(a,b) for(int index=0 ; index<b ; index++)scanf("%d",&a[index])
#define prdlld(a,b) printf("%I64d %I64d",a,b)
#define prdd(a,b) printf("%d %d",a,b)
#define prd(a) printf("%d",a)
#define prarr(a,b) for(int i=0 ; i<b ; i++)printf("%d ",a[i])
#define iniarr(a,b) for(int i=0 ; i<b ;i++)a[i]=0
#define arr(a,b) int *a=(int *)malloc(b*sizeof(int))
#define llarr(a,b) long long int *a=(long long int *)malloc(b*sizeof(long long int))
#define st(a,b) char *a=(char *)malloc(b*sizeof(char))
#define grav 9.8
#define pi 3.14159265

int main()
{
	int a=100000;
	int n;
	scd(n);
	a+=(a*5*n)/100;
	a+=1000*n;
	printf("%d\n",a);
	
	return 0;
}

C++: #include<iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <math.h>
using namespace std;
#include <sstream>
typedef long double ld;
int a;
int main(){
cin>>a;
double c=100000.0;
for (int i = 0; i < a; ++i) {
	c=c*1.05;
	c=ceil(c*0.001);
	c=c*1000;
}
cout<<c<<endl;
return 0;
}