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(){
    int week, fraction;

    cin >> week;
        double debt = 100000;
        double const rate = 1.05;

        for (int i = 0; i < week; i++){
            debt = debt*rate;
            fraction = (int)debt % 1000;

            if (fraction > 0){
                debt = debt + 1000 - fraction;
            }
        }
        cout << (int)debt << endl;

    return 0;
}

C++: #include <iostream>

#define rep(i,n)      for(int i=0;i<n;i++)

using namespace std;

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

	int a = 100000;
	rep(i,N)
	{
		a = (105 * a / 100 + 999) / 1000 * 1000;
	}
	cout << a << endl;
	return 0;
}

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

int main(){
    int n;
    cin>>n;
    int temp = 0,k;
    for(int i = 0; i < n; i++){
        k = (int)(sum * 0.05) % 1000;
        if(k != 0)
            temp = 1000;
        else
            temp = 0;
        sum += sum * 0.05 + temp - k;
    }
    cout<<sum<<endl;
    return 0;
}

C++: //
//  main.cpp
//  CppTest
//
//  Created by Ryu on 2017/02/08.
//  Copyright ?? 2017??´ Ryu. All rights reserved.
//

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    long n = 0;
    cin >> n;
    
    long rest = 100000;
    for (int i = 0; i < n; i++) {
        rest *= 1.05;
        if(rest % 1000 != 0){
            rest = rest + 1000 -  rest % 1000;
        }
    }
    
    
    
    printf("%ld", rest);
    
    return 0;
}

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

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

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

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

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

  while(n--) {
    m = ceil(m*1.05/1000)*1000;
  }
  cout << m << endl;
  
  return 0;
}

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

int main(){
    int week = 0;
    cin >> week;
    int a = 100000;
    for(int i = week;i--;){
        a *= 1.05;
    }
    a = (int)(a * 0.0001 + 0.9) * 10000;
    cout << a;
    return 0;
}

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

int main(){
	int n;
	cin >> n;
	int y = 100000;
	for(int i = 0 ; i < n ; i++){
		y = y * 105 / 100;
		if( y % 1000 ) y += 1000 - y % 1000;
	}
	cout << y << 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=debt-(debt%1000)+1000;
        }
    }
    cout << debt << endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(void)
{
  int i, x = 100000;
  int a;
  cin >> i;
  
  for(a = 0; a < i; a++){
    x += (x * 0.05);
    if(x % 1000 != 0){
      x = (x / 1000 + 1) * 1000;
    }
  }
  cout << x << endl;
  return 0;
}

C++: #include <stdio.h>
int main(){
    int n,i,kin2;
    double kin=100000,risoku=0.05;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        kin=kin+(kin * risoku);
        kin=kin/1000;
        kin2=(int)(kin+0.9);
        kin = kin2*1000;

    }
    kin2 = kin;
    printf("%d\n",kin2);
	return 0;
}

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

int main(){
int n,M,m;
M=100;
cin>>n;
for(int i=0;i<n;i++){
m=(M+19)/20;
M+=m;
}
cout<<M;
}

C++: #include<iostream>

using namespace std;

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

	int money = 100000;
	int total = money;
	for(int i = 0; i < n; i++)
	{
		total += money * 0.05;
		money += money * 0.05;
		total = total - total % 10000;
	}
	cout << total << endl; 

	return 0;
}

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

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

using namespace std;

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

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

    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
	double a;
	cin>>a;
	int ans=100000;
	for(int b=0;b<a;b++)
	{
		double rev=0;
	   ans=ans*1.05;
	   rev=ans%1000;
	   ans=ans-rev;
	   ans=ans+1000;
		}
		printf("%.15000lf\n",ans);
	}

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

int RoundUp(int Integer, int Power)
{
	int Place = pow(10, Power);
	if(Integer % Place != 0){
		Integer = Place * (Integer / Place + 1);
	}
	return Integer;
}

int main()
{
	int Debt = 100000;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		Debt = RoundUp(1.05 * Debt, 3);//?????¬???????????????????????±????????§??????????????????????????????????????????
	}
	cout << Debt << 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 = debt * 1.05;
		if (debt % 1000)
			debt += 1000;
		debt -= debt % 1000;
	}
	cout << debt << endl;

	return 0;
}

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

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

using namespace std;

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

    cin >> n;

    for(int i = 0;i < n;i++){
        debt *= 1.05;
    }

    debt /=10000;
    debt = round(debt);

    cout << debt * 10000 << endl; 

    return 0;
}

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

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

	
	
	return 0;
	}

C++: #include<stdio.h>
int main(void)
{
	int n,i,s,z;
	z=100000;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		s=(z*5)/100;
		if(s%1000!=0){
			s=s/1000;
			s++;
			s=s*1000;
		}
		z=z+s;
	//	printf("%d\n",s);
	}
	printf("%d\n",z);
	return 0;
}

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

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

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/=10000;a=ceil(a);a*=10000;
	cout<<a<<endl;
	return 0;
}

C++: #include <iostream>

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