Go: package main
import (
	"fmt"
	"os"
	"strconv"
	"bufio"
	"math"
)

var sc = bufio.NewScanner(os.Stdin)

func main(){
	sc.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(ans)
}

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp+=tmp*0.05
	}
	tmp = Ceil(tmp, -4)
	return tmp
}

func Ceil(f float64, places int) float64{
	shift := math.Pow(10, float64(places))
	return math.Ceil(f * shift)/shift
}

func next()string{
	sc.Scan()
	return sc.Text()
}

func nextInt()int{
	a, _ := strconv.Atoi(next())
	return a
}

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++: a=100000
gets.to_i.times{a=a*105/100;a=(a/1000+1)*1000 if a%1000!=0;}
puts a

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

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

	cin >> n;
	for(int i = 0;i < n;i++)
		debt += debt * risi;
	debt = ceil(debt);
	debt = debt * 10000;
	cout << debt << endl;

	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int loan;
	int n;
	
	loan = 100000;
	scanf("%d", &n);
	
	while (n){
		loan += (loan * 0.05);
		
		if (loan % 1000){
			loan += 1000;
		}
		
		loan /= 1000;
		loan *= 1000;
		
		n--;
	}
	
	printf("%d\n", loan);
	
	return (0);
}

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

int main()
{
	int n;
	float b=100000;

	cin>>n;

	for(int i=0;i<n;i++){
		b*=1.05;
		b=(int)((b+999)*0.001);
		b*=1000;
	}
	cout<<(int)b<<endl;
}

C++: #include<cstdio>

int main(){
	int n;
	float k=100000;
	scanf("%d",&n);
	for(;n>=0;n--){
		k*=1.05;
		if(int(k)%1000){
			k+=1000;
		}
		k=float(int(k)-int(k)%1000);
	}
	printf("%d",k);
	return 0;
}

C++: #include <algorithm>
#include <sstream>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string>
#include <queue>
#include <vector>
using namespace std;

int main()
{
	int x = 100000, y, z;
	int n;
	cin >> n;

	for (int i = 0; i < n; i++) {
		x *= 1.05;
		y = x / 1000;
		z = x % 1000 > 0 && x % 1000 < 1000 ? 1000 : 0;
		x = y * 1000 + z;
	}

	cout << x << endl;
}

C++: #include <iostream>

using namespace std;

static const int ROUND = 1000;

int weeks;
double loan = 100000;
int rishi = loan * 0.05;
int temp;

int main(){
  scanf("%d", &weeks);
  while (weeks != 0){
      loan = loan *1.05;
      loan = (int(loan/ROUND) +1) * ROUND;
      weeks--;
  }
 cout << loan << endl;
 return 0;   
}

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

int main(){
	int num = 100;
	int n;
	cin >> n;
	for(int i=0;i<n;i++){
		num=(int)ceil((double)num*1.05);
	}
	cout << num*1000 << endl;

	return 0;
}

C++: #include <iostream>
#include<math.h>
#include<iomanip>
#include<vector>
#include<algorithm>
#include<functional>
using namespace std;

int main()
{
    int  a=0,b=0,i=0;
    b=100000;
    cin >> a;
    for(i=0;i<a;i++){
        b=b*1.05;
        b=((b-1)/1000);
        b=b*1000+1000;

    }

    cout << b << endl;



    //cout << endl;

return 0;

}

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

C++: #include <iostream>

int main(){
        int a;
        std::cin >> a;
        double result=100;
        for(int i=a;i;i--){
                result*=1.05;
                result=(int)(result+0.9);
        }

        result*=1000;
        std::cout << result;

        return 0;
}

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

int main() {
  double debt;
  int n;
  debt = 100000;
  cin >> n;
  for(int i=0;i < n;i++) {
    debt *= 1.05;
    debt /=1000;
    debt += 0.999;
    debt = floor(debt);
    debt *= 1000;
  }
  cout << debt << endl;
}

C++: #include<iostream>
#include<string>
#include<cmath>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include<algorithm>
#include<complex>
using namespace std ;
typedef vector<int> vi ;
typedef vector<vi> vvi ;
typedef vector<string> vs ;
typedef pair<int, int> pii; 
typedef long long ll ;

#define loop(i,a,b) for(int i = a ; i < b ; i ++)
#define rep(i,a) loop(i,0,a)
#define all(a) (a).begin(),(a).end()

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

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

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

int main()
{
        int week;
        long long int debt = 100000;

        cin >> week;
        for(int i=0;i<week;i++){
                debt = debt + debt*0.05;
                if((debt%1000)!=0){
                        debt = (debt/1000 +1)*1000;
                }
        }

        cout << debt << "\n";

        return 0;
}

C++: #include<iostream>
using namespace std;
int main(void)
{
    int n,A=100000,b,a1,b1,A1=100000;
    cin>>n;
    for(int i=0;i<n;i++){
        b1=A*0.05/1000;
        a1=b1*1000+1000;
        A1+=a1;
    }        cout<<A1<<"\n";
}

C++: #include <iostream>
#include <math.h>
using namespace std;
 
void test();
int  interest(int debt, float interest_rate, int n);
 
int main(void)
{
    test();
    return 0;
}
 
void test()
{
    int debt,n;
    float interest_rate;
    debt = 100000;
    interest_rate = 1.05;
    cin >> n;
 
    debt = interest(debt, interest_rate, n);
 
    if (debt % 1000 > 0)
    {
        debt = debt - debt % 1000 + 1000;
    }
    cout << debt << endl;
}
 
int interest(int debt, float interest_rate,int n)
{
 
    if (n == 0)
        return debt * interest_rate;
    else
        return interest(debt, interest_rate, n - 1) * interest_rate;
}

C++: #include<iostream>
int main(){int w,m=100000;for(std::cin>>w;w--;m=(m+999)/1000*1000)m+=m*5/100;std::cout<<m<<'\n';}

C++: #include<iostream>

using namespace std;

int main()
{
	int n;
	int debt = 100000;
	int temp = 100000;
	
	cin >> n;
	
	for(int i = 0; i < n; i++){
		debt *= 1.05;
	}
	
	for(int i = 0;; i++){
		temp += (10000*i);
		if(temp > debt){
			break;
		}
	}
	
	cout << temp << endl;
}

C++: #include<iostream>

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

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

int main()
{
	double debt = 100000;

	int n;
	cin >> n;
	
	while (n--) {
		debt *= 1.05;
		debt /= 1000;

		debt += 0.999;

		int t1 = debt;
		double t2 = debt - t1;
		debt -= t2;

		debt *= 1000;
	}

	cout << (int)debt << '\n';

	return 0;
}

C++: #include <iostream>
using namespace std;
//1000未満切り上げ
int main(){
  int weeks;
  int debt = 100000;
  cin >> weeks;
  for(int i=0;i<weeks;i++){
    debt*1.05;
    if(debt%1000)
      debt += (1000 - debt%1000);
  }
  cout << debt <<endl;
}

C++: #include <iostream>

using namespace std;

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

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

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

C++: #include <iostream>

int main(){
 long long int Debt = 100000;
 int n;

 cin >> n;

 for (int i=0; i<n; i++) Debt = Debt * 1.05;
 if(Debt % 10000 > 0) Debt = Debt + 10000;

 return 0;
}