Go: package main

import (
	"fmt"
	"os"
	"bufio"
	"strconv"
	"math"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		n, _ := strconv.Atoi(scanner.Text())
		debt := float64(100000)
		for i:=1; i<=n; i++ {
			debt = debt*1.05
			debt = math.Ceil(debt*0.001) * 1000
		}		
		fmt.Println(int(debt))
	}
}

C++: #include<stdio.h>
#include<math.h>
 
int main(){
    int a;
    scanf("%d",&a);
    int b=100000;
    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>

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 + rishi;
      temp = loan/ROUND;
      loan = (temp+1) * ROUND;
      weeks--;
  }
 cout << loan << endl;
 return 0;   
}

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

int main() {
  int n;
  cin >> n;
  int A=pow(10,5);
  for (int i=0; i<n; i++) {
    A*=(1.05);
    A=(A+999)/1000*1000;
  }
  printf("%d\n",A);
  return 0;
}

C++: #include <stdio.h>

int main(void) {
	int n, m = 100000;
	int i;
	
	scanf("%d", &n);
	
	for(i = 0; n > i; i++){
		m*=1.05;	
		if(m%1000 != 0){
			m = ((int)(m/1000)) * 1000;
			m+=1000;
		}
	}
	printf("%d", m);
	return 0;
}

C++: #include <cstdio>

using namespace std;

in main() {
 int n = 0;
 double N = 0;
 int M = 100;
 int L = 100;
 scanf("%d", &n);
 for (int i = 0; i < n; i++) {
  N = L;
  N = M;
  N *= 1.05;
  N -= M;
  L += N;

  while (N> 1){
    N -= 1;
  }

  if (N > 0) {
    L += 1;
   }
}

L *= 1000;
printf("%d", L);

return 0;
}

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

int main(void){
    int n;
    long long int ans=100000;
    cin>>n;
    for (int i=0;i<n;i++) {
        ans=ans*1.05;
        double tmp=ans%1000;
        ans-=tmp;
        tmp=tmp/1000;
        tmp=ceil(tmp);
        tmp*=1000;
        ans+=tmp;
    }
    cout<<ans<<endl;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	int n,a=100000;
	while(cin>>n){
		for(int i=1;i<=n;i++){
			int b=a*0.05;
			if(b%1000)
				b=(b/1000+1)*1000;
			a+=b;
		}
		cout<<a<<endl;
	}
	return 0;
}

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

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

 for(int i = 0; i < n; ++i){
  maney = money + (money * 0.05);
  if(money % 1000 != 0){
   money += 1000;
  }
 }
 cout << money << endl;
 return 0;
}

C++: a=100000;gets.to_i.times{a=((a*1.05/1000).ceil)*1000;};puts a;

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cmath>
#include <utility>

#define ll (long long)
#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)


using namespace std;


int main(void)
{
    int n;
    double money = 100000;
    int keta = 1;
    int judge = 1;
    double temp;
    cin >> n ;
    FOR(i, 1,n+1 )
    {
        money+= 0.05*money;
        temp = money;
        while(judge)
        {
            temp = (int)temp /10;
            if (temp) {
                keta++;
            }else
                judge = 0;
        }
        
        REP(i,3)
        money = money /10;
        money = ceil(money);
        //cout << money << endl;
        REP(i, 3)
        money = money*10;
        keta = 0;
        judge = 1;
    }
    
    
    cout << money << endl;
    return 0;
}

C++: #include <cstdio>

using namespace std;

int main(void){
	int n, i;
	double debt = 100000, up;
	scanf("%d",&n);
	for(i = 0;i < n;i++){
		debt *= 1.05;
		up = debt - ((int)(debt / 1000) * 1000);
		if(up > 0){
			debt += 1000 - up;
		}
	}
	printf("%d\n",(int)debt);
	return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstdio>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define pb push_back
#define mp make_pair
#define it ::iterator
#define all(in) in.begin(),in.end()
typedef long long int LLI;
const double PI=acos(-1);
const double ESP=1e-10;
using namespace std;
int main(){
  int n;
  cin>>n;
  int ans=100000;
  rep(i,n){
    ans*=1.05;
    if(ans%1000){
      ans-=ans%1000;
      ans+=1000;
    }
  }
  cout<<ans<<endl;
}

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

int main() {
  int n;
  cin >> n;
  int A=pow(10,5);
  for (int i=0; i<n; i++) {
    A*=(1.05);
    A = (A + 999) / 1000 * 1000;
  }
  
  printf("%d\n",A);
  return 0;
}

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

using namespace std;

int main()
{
    int n; cin >> n;
    int a = 100000;

    for (int i = 0; i < n; ++i) {
        a += (double)a * (5 / 100.0);
        a += (1000 - a % 1000) % 1000;
    }

    cout << a << endl;
}

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

int main(){
int n;
scanf("%d",&n);
double base = 100000;
for(int i=0;i<n;i++){
base*=1.05;
if((int)base %1000 !=0) {
int tmp = (int)base / 1000;
base = tmp*1000 + 1000;
}

}
printf("%d\n",(int)base);
}

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

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

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

typedef long long ll;
using namespace std;

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

int main() {
    solver();
    return 0;
}

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

int main() {
	int week;
	cin >> week;
	int debt = 100;
	for (int i = 0; i < week; i++)
	{
		debt = ((debt * 105) / 100) + ((debt % 20) > 0 ? 1 : 0);
	}
	cout << debt << "000" << endl;

	return 0;
}

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

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

    int loan = 100000;

    for (int i = n; i > 0; i--) {
        loan = ceil((loan * 1.05) / 1000.0) * 1000;
    }

    cout << loan << '\n';
}

C++: #include<iostream>
int main(){
	int kane=100000,rishi,kiriage,n,i;
	std::cin>>n;
	for(i=0;i<n;i++){
		kane=kane*1.05;
		rishi=kane-100000;
		kiriage=rishi%1000;
		if(kiriage!=0){
			kiriage=1000-kiriage;
			}
		kane=kane+kiriage;
		}
	std::cout<<kane<<std::endl;
	return 0;
	}

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

int main()
{	
	int n;
	double s = 100000;
		
	cin >> n;
	
	while(n--)
		s = ceil(s * 1.05 * 0.001) * 1000;
	cout << (int)s << endl;
		
	return 0;
}

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

int age(int t) {
	return ceil((double) t / 10000) * 10000;
}

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

	int loan = 100000;
	loan += loan * 0.05 * n;

	std::cout << age(loan);
}

C++: #include <stdio.h>
int main(){
int n;
scanf("%d",&n);
printf("%d\n",n*5000+100000);
}

C++: #include <iostream>
#include <cstdio>
using namespace std;
#define REP0(i,n) for(int i=0;i<n;++i)
#define REP1(i,n) for(int i=1;i<=n;++i)
#define ALL(c) (c).begin(),(c).end()
int main(){
	int d=100000,n;
	scanf("%d",&n);
	REP0(i,n){
		d=d*105/100;
		d=(d+999)/1000*1000;
	}
	printf("%d\n",d);
	return 0;
}

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