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 := 100000 * math.Pow(1.05, float64(n))
		rounddebt := int(math.Ceil(debt*0.0001)) * 10000
		fmt.Println(rounddebt)
	}
}

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

using namespace std;

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

C++: #include <iostream>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <algorithm>
#include <stdlib.h>

using namespace std;


int main(){
	int mon = 100000;
	int r = 5;
	int n;
	cin >> n;

	for (int i=0 ; i< n ; i++){
		mon += mon * r / 100;
		if((mon-1)/1000 == mon/1000){
			mon = mon/1000;
			mon++;
			mon = mon * 1000;
		}
	}

	cout << mon << endl;
	return 0;
}

C++: #include<iostream>


using namespace std;

int main(){
	int money = 100000;
	int N;
	cin >> N;
	
	for(int i=0;i<N;i++){
		money *= 1.05;
		if(money%1000 == 0) continue;
		
		money = (((int)money/1000)+1)*1000;
	}
	cout << money << endl;
	
	return 0;
}

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

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

	cin >> n;
	for (int i = 0; i < n; i++){
		a *= 1.05;
		if (a % 100 != 0){
			a = (a / 1000 + 1) * 1000;
		}
	}
	cout << a << endl;
}

C++: #include<iostream>
#include<math.h>
int main(){
	int n;
	double Debt=100000;
	long int Debt_ans;
	std::cin >> n;
	for (int i = 0; i < n; i++){
		Debt = Debt*1.05 / 1000;
		Debt = ceil(Debt);
		Debt = Debt * 1000;
	}
	Debt_ans = Debt;
	std::cout << Debt_ans<< std::endl;
}

C++: #include <iostream>

using namespace std;

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

    int debt = 100'000;

    while (n != 0) {
        debt *= 1.05;
        if (debt % 1000 != 0) {
            debt = (debt / 1000 + 1) * 1000;
        }
        --n;
    }

    cout << debt << endl;
}

C++: #include<iostream>

using namespace std;

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

    int d = 100000;
    int r = 0;

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

    cout << d << endl;
}

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

int main(){

  int n;
  int sum=100000;

  cin>>n;

  for(int i=0;i<n;++i)
    sum=sum+sum*0.05;

  if(sum%10000!=0){
    sum=sum/10000;
    sum=sum+1;
    sum=sum*10000;
  }

  cout<<sum<<endl;

}

C++: #include <iostream>
using namespace std;
int main(void){
	int a,b=100000,c,d,e=1000;
	cin>>a;
	for (int A=0;A<a;A++){
		c=b*1.05;
		d=c%1000;
		if (d!=0){
			e-=d;
			c+=e;
			b=c;
			e=1000;
		}
		b=c;
	}
	cout<<c<<endl;
	return 0;
}

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

using namespace std;

int calcDebt(int debt){
	double tmp = debt * 1.05;
	int result = (int) ceil(tmp);
	if(result % 1000 == 0){
		return result;
	}else{
		return (result / 1000 + 1) * 1000;
	}
}

int main() {
	int result = 100000;
	int n;
	scanf("%d", &n);
	for(int i=0; i<n; i++){
		result = calcDebt(result);
	}
	printf("%d", result);
	return 0;
}

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

using namespace std;

int roundUp(int x, int index);

int main(void)
{
    int i;
    int n;
    double intrst;
    int debt;
    
    cin >> n;
    
    debt = 100000;
    intrst = 0.05;
    for (i = 0; i < n; i++) {
        debt *= 1.0 + intrst;
        debt = roundUp(debt, 4);
    }
    
    cout << debt << endl;
    
    return 0;
}

int roundUp(int x, int index)
{
    int exp10;
    
    exp10 = pow(10, index - 1);
    if(x % exp10 != 0){
        x += exp10 - (x % exp10);
    }
    
    return x;
}

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 <string>
using namespace std;
int main() {
double n=100000;
int i,b;
cin>>b;
for(i=0;i<5;i++){
n*=1.05;
n=(int)(n+999)/1000*1000;
}

cout<<n<<endl;
  return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <vector>
#include <cmath>
#include <cctype>
using namespace std;

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

C++: #include<iostream>
#include<stdio.h>
int main(){
	
	int n,i,a,b,okane=100000;

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

		}
    std::cout<<okane;

	system("pause");
	
	
	
	
	

	return 0;
}

C++: #include <iostream>

using namespace std;

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

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

int main(){
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    int n;
    std::cin >> n;
    double loan = 100000;
    for(int i=0; i<n; ++i){
        loan *= 1.05;
        loan = std::ceil(loan/1000)*1000;
    }
    std::cout << loan << "\n";
    return 0;
}

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

int ceiler(double start) {
    //cout << start << endl;
    start /= 1000;
    //cout << start << endl;
    start = ceil(start);
    start *= 1000;
    return(start);
}

void check(int num) {
    cout << ceiler(num) << endl;
}

int main(void) {
    double tax = 0.05 * DEFAULT;
    double start = DEFAULT;
    int num;
    cin >> num;
    for(int r = 0; r <= num; r++) {
        start += tax;
    }
    //check(1000);
    start = ceiler(start);
    cout << (int)start << endl;
    
    return(0);
}

C++: #include<iostream>
using namespace std;
int main(){
	int n;
	cin>>n;
	int lend=100000;
	for(int i=1;i<=n;i++){
		lend=(lend*1.05-1)/1000;
		lend=(lend+1)*1000;
	}
	cout<<lend;
}

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

#define DEBIT 100000

int main(){
	int debit = DEBIT, y;
	cin >> y;
	for(int i = 0; i < y; i++){
		debit *= 1.05;
		if(debit % 1000 > 0){
			debit = (debit / 1000 + 1) * 1000;
		}
	}
	cout << debit << endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
#define L long long int
int main(){
int n,ans=100000;
cin>>n;
while(n--){
	ans*=1.05;
	ans+=ans%1000==0 ? -ans%1000:1000-ans%1000;

}
cout<<ans<<endl;
return 0;
}

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

int main(){

  int n;
  int sum=100000;

  cin>>n;

  for(int i=0;i<n;++i){
    sum=sum+sum*0.05;

    if(sum%1000!=0){
      sum=sum/1000;
      sum=sum+1;
      sum=sum*1000;
    }
  }
  cout<<sum<<endl;

}

C++: #include<iostream>
#include<math.h>
int main(){
	int n;
	double Debt=100000;
	std::cin >> n;
	for (int i = 0; i < n; i++){
		Debt = Debt*1.05 / 1000;
		Debt = ceil(Debt);
		Debt = Debt * 1000;
	}
	std::cout << Debt<< std::endl;
}

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

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

int main() {
	int n;
	double d = 100000;
	cin >> n;
	for (int i = 0; i < n; i++) {
		d *=  1.05 / 1000;
		if (d - floor(d) > 0.00001) {
			d = ceil(d) * 1000;
		}else d *= 1000;
	}
	cout << (int)d <<endl;
		
	return 0;
}