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>

using namespace std;

int main() {
	int n, money = 100000;
	cin >> n;

	for (int i = 0; i < n; i++) {
		money *= 1.05;
		money = money-(money%1000)+1000;
	}

	cout << money-1000 << endl;

	return 0;
}

C++: // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007&lang=jp

#include <iostream>
using namespace std;

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

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

//NAMESPACE
using namespace std;

//CONSTANT
const int64_t INF=INT64_MAX;

//FAST I/O
void init(){cin.tie(0);ios::sync_with_stdio(false);}
//----------------------------------------------------

int64_t solve(int n){
  int64_t dept=100000;

  for(int i=0;i<n;i++){
    dept=(int)(dept*1.05);
    if(dept%1000!=0){
      dept+=(1000-dept%1000);
    }
  }

  return dept;
}

int main(){
  init();

  int64_t n;
  cin >> n;

  cout << solve(n) << endl;

  return 0;
}

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

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

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

  cout << money << endl;

  return 0;
}

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

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

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

int main(){
	double money = 100000;
	int n;
	cin >> n;
	for( int i=0; i<n; i++ ){
		money = (double)money * 1.05;
		int up = money / 1000;
		if( (int)(money - up) > 0 )
			money = (up+1)*1000;
		else
			money = up * 1000;

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

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

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

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

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

C++: #include <iostream>

using namespace std;

int main(){
	double debt = 100000.0;
	int n, r;
	cin >> n;
	while ( n-- > 0 ){
		debt *= 1.05;
		r = (int)debt % 1000;
		if ( r != 0 ){
			debt = debt - r + 1000;
		}
	}
	cout << (int)debt << endl;
	
	return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#define shosu(x) fixed<<setprecision(x)
using namespace std;
int main(){
	int num,tmp,money=100000;
	cin>>num;
	for(int i=0;i<num;i++){
		money*=1.05;
		tmp=money%1000;
		if(tmp>0) money=money-tmp+1000; 
	}
	cout<<money<<endl;
}

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

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

	int borrowing = 100000 / 1000;

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

	cout << borrowing * 1000 << endl;

	return EXIT_SUCCESS;
}

C++: #include <cstdio>

using namespace std;

int main() {
  int n;
  scanf("%d", &n);
  int debt = 100000;
  for (int i=0;i<n;i++) {
    debt = debt*105/100;
    debt = (debt+999)/1000;
    debt = debt*1000;
  }
  printf("%d\n", debt);
  return 0;
}

C++: #include <cstdio>

int main(){
    int debt=100000,n;
    scanf("%d", &n);

    for(int i = 0; i < n; i++){
        debt = debt * 1.05;
        if(debt - (debt/1000)*1000 > 0){
            debt = (debt/1000)*1000 + 1000;
        }
    }

    printf("%d\n",debt);
    return 0;
}

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

int main(){
  int n;
  cin >>n;
  int sum=100000;
  int interest;
  for(int i =1 ; i<=n;i++){
    interest=sum*0.05;
    if (interest%1000>0)
    interest=(interest-interest%1000) + 1000;

    sum+= interest;
  }
  cout << sum<<endl;;
}

C++: #include <iostream>

using namespace std;

int debt = 100000;

int main() {
    int n;
    cin >> n;
    while (n--) {
        debt = debt * 105 / 100;
        if (debt % 1000) {
            debt = debt - (debt % 1000) + 1000;
        }
    }
    cout << debt << endl;
}

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

using namespace std;

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

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

C++: #include<iostream>

using namespace std;

main(){
  
  int n;
  double rm=100000;//remaining_money
  int i;
  while(cin >> n ){
    for(i=0;i<n;i++){
      
      rm *= 1.05;
      //kiriage
      rm /= 1000;
      rm += 0.9;
      rm =(int)rm;
      rm *= 1000;
    }
    
    cout << rm << endl;
    
  }
  return 0;
  
}

C++: #include<stdio.h>

main(void){
    int money = 100000, num;
    
    scanf("%d", &num);
    
    for( ; num >= 0; num--){
        money += money * 0.05;
    }
    
    printf("%d\n", (money/10000)*10000);

    return 0;
}

C++: #include <stdio.h>
int main(){
    int n,i,kei;
    double kin=100000,ri=1.05;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        kin = kin * ri;
        kei = (int)(kin/1000+0.9);
        kin = kei * 1000;
    }
    kei=kin;
    printf("%d",kei);
	return 0;
}

C++: #include<iostream>

using namespace std;

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

	cin >> n;

	for (int i = 0; i < n; i++) {
		m = m * 1.05;
		if (m % 1000 != 0) {
			int work = m % 1000;
			m = m - work + 1000;
		}
	}

	cout << m << endl;

	return 0;

}

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

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int n; cin>>n;
	int ans=100'000;
	for(int i=0;i<n;++i){
		ans=ans*21/20;
		ans=(ans+999)/1000*1000;
	}
	cout<<ans<<"\n"s;
}

C++: #include <iostream>

#include <math.h>

int main(int argc, char** argv)
{
  int n;

  std::cin >> n;

  int x = 100000;

  for (int i = 0; i < n; i ++)
    x = round(x * 1.05 / 1000) * 1000;
  
  std::cout << x << std::endl;
}

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

int main()
{
	int debt = 100000 ;
	int get ;

	cin >> get ;

	for( int i = 0 ; i < get ; i ++ )
	{
		debt *= 1.05 ;
		if( debt % 1000 != 0 )
		{
			debt = debt + 1000 - (debt%1000) ;
		}
	}

	cout << debt << endl ;
	return 0 ;
}

C++: #include<stdio.h>

int main(void){
  unsigned int start=100000;
  int i,j,k,n;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    start/=100;
    start*=105;
    start+=999;
    start/=1000;
    start*=1000;
  }
  printf("%d\n",start);
  return 0;
}

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

int main(){
  int a,sum=100000,b;
  cin >>a;

  for(int i=0;i<a;i++){
    b=sum/20;
    if(b%1000==0)sum+=b;
    else sum+=(b/1000+1)*1000;
  }
  cout <<sum<<endl;
  return 0;
}

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

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

C++: #include<stdio.h>

int main(void)
{
	int n,x,m=100000;
	scanf("%d",&n);

	for(x=0;x<n;x++)
	{
		m=m+m*0.05;

		if(m%1000!=0)
		{
			m+=1000-(m%1000);
		}
	}
	printf("%d",m);
}