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++: main = do
    n <- readLn :: IO Int
    
    let debt x = 100 * ceiling $ x * 0.0105

    print $ iterate n debt x !! n

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

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string.h>
#include<math.h>
#include<cstring>
using namespace std;
#define tax 1.05

int main(){
	double i,n,a=100000;
	cin>>n;
	for(i=0;i<n;i++){
		a*=tax;
		if((int)a%1000!=0){
			a=a-(int)a%1000+1000;
		}
	}
	cout<<(int)a<<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 << std::fixed << std::setprecision(0) << loan << "\n";
    return 0;
}

C++: #include<cstdio>

int main() {
	int n;
	double debt=100000;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		debt = debt + debt*0.05;
	}
	debt = debt - (int)debt % 1000;
	debt = debt + 1000;
	printf("%d\n", (int)debt);

	return 0;
}

C++: #include<iostream>

using namespace std;


int main(void){

  int n;
  double money=100000;
  int i;

  cin >> n;

  for(i=0;i<n;i++){

    money*=1.05;
    money/=1000;
    money+=0.999;

    money=(int)money;
    money*=1000; 
    
    
    
  }



  cout << (int)money << endl;




  return 0;
}

C++: #include<iostream>

using namespace std;

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

  cin >> n;
  while(n--){
    a=a*5/100+a;
    if(a%1000){
      a/=1000;
      a=a*1000+1000;
    }
  }
  cout << a << endl;

  return 0;
}

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

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<<endl;
	return 0;
}

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

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

C++: #include<iostream>

using namespace std;

int week(int money){
	money = money + money * 0.05;
	money = money + 1000 - ( money % 1000 );
	return money;
}

int main(void){
	int n;
	int money = 100000;
	cin >> n;
	for(int i = 0;i < n;i++){
		money = week(money);
	}

	cout << money << endl;
	
	return 0;
}

C++: #include <stdio.h>

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

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

using namespace std;

int debt = 100000;

int main() {
    int n;

    cin >> n;

    while (n--) {
        debt = ceil(debt * 1.05 / 1000) * 1000;
    }

    cout << debt << endl;

    return 0;
}

C++: #include<cstdio>

int main(){
	int n;
	int a = 100;
	scanf("%d", &n);
	for(int i = 0; i < n; i++){
		if(a % 100){
			a = a * 1.05 + 1;
		}else{
			a *= 1.05;
		}
	}
	printf("%d000\n", a);
	return 0;
}

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>
#include<string>
#include<iomanip>
using namespace std;
int main(){
	int a=100000;
	int n;
	cin>>n;
	for(int i=0;i<n;i++){
		a*=1.05;
		if(a%1000==0)
			a-=1000;
		a=(a/1000)*1000;
		a+=1000;
	}
	cout<<a<<endl;
	getchar();
	getchar();
	return 0;
}

C++: #include <iostream>

int main(void)
{
	uint32_t week;
	std::cin >> week;

	uint32_t base = 100000;

	for (int i = 0; i < week; i++)
	{
		uint32_t rishi = base * 0.05;
		if (rishi % 1000 > 0)
		{
			rishi = rishi / 1000 * 1000;
			rishi += 1000;
		}
		base += rishi;
	}
	
	std::cout << base << std::endl;

	return 0;
}

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

int main()
{

    long long ans = 100000;
    int n;
    cin >> n;
    for(int i=0;i<n;i++)
    {
        ans = ans*105/100;

        if(ans % 1000 > 0) ans = ((ans/1000)+1)*1000;
        else ans = (ans /1000)*1000;

    }
    cout << ans << endl;

    return 0;
}

C++: #include <iostream>

int main()
{
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);
    int debt = 100000;
    int n;
    std::cin >> n;
    for (int i = 0; i < n; ++i) {
        debt += debt / 20;
        if (debt % 1000 != 0) {
            debt += 1000 - (debt % 1000);
        }
    }
    std::cout << debt << std::endl;
}

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

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

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

int main() {
	int weeks;
	cin >> weeks;
	double loan = 100000;
	for (int week = 0; week != weeks; ++week) {
		loan *= 1.05;
		if (int(loan) % 1000 != 0) 
			loan = (loan+1000)-int(loan+1000)%1000;
	}
	cout << fixed << setprecision(0) << loan << 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/=1000;a=ceil(a);a*=1000;
	}
	
	cout<<(int)a<<endl;
	return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(){
  int n;
  double ans=100000;
  cin>>n;
  for(int i=0;i<n;i++){
   ans=ans+ans*0.05;
   ans+=900;
   ans=(int)ans/1000;
   ans=ans*1000;
  }
  cout<<(int)ans<<endl;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
using namespace std;

#define FOR(i,a,b) for(long long int i=(a);i<(b);i++)
#define REP(i,n) for(long long int i=0;i<(n);i++)
#define ALL(s) (s).begin(),(s).end()

#define PI 3.14159265358479

typedef long long int ll;
typedef vector<long long int> vi;

int main(){
	ll n,m=100000;
	cin >> n;
	REP(i, n){
		m *= 1.05;
		if (m % 1000 != 0){
			m -= m % 1000;
			m += 1000;
		}
		cout << m;
	}
	cout << m << "\n";
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <sstream>
#include <cstdlib>
#include <cmath>
 
using namespace std;

int main(){
    long double debt = 100000;
    int n;
    cin >> n;
    for(int i = 0; i < n; i++){
    	debt +=  debt * 0.05;
    	debt /= 1000.000;
    	debt = ceil(debt);
    	debt *= 1000.000;
    }
    cout << debt << endl;
    return 0;
}