Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() int {
	n, err := strconv.Atoi(nextString())
	if err != nil {
		fmt.Printf("strconv.Atoi failed: %v\n", err)
	}
	return n
}

func main() {
	scanner.Split(bufio.ScanWords)

	n := nextInt()
	debt := 100.0 // 100千円
	for i := 1; i <= n; i++ {
		debt = math.Ceil(1.05 * debt)
	}
	fmt.Println(int(math.Ceil(debt)) * 1000)
}

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

int main(){
	int n;
	cin >> n;
	int y = 100000;
	for(int i = 0 ; i < n ; i++){
		y = y * 105 / 100;
		if( y % 1000 ) y += 1000 - y % 1000;
	}
	cout << y << endl;
}

C++: #include <iostream>

using namespace std;
int main(){
    int n;
    int debt=100000;
    cin >> n;
    for(int i=0; i<n; i++){
        debt *= 1.05;
        if(debt%1000!=0){
           debt=debt-(debt%1000)+1000;
        }
    }
    cout << debt << endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include <stdio.h>
int main(){
    int n,i,kin2;
    double kin=100000,risoku=0.05;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        kin=kin+(kin * risoku);
        kin=kin/1000;
        kin2=(int)(kin+0.9);
        kin = kin2*1000;

    }
    kin2 = kin;
    printf("%d\n",kin2);
	return 0;
}

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

int main(){
int n,M,m;
M=100;
cin>>n;
for(int i=0;i<n;i++){
m=(M+19)/20;
M+=m;
}
cout<<M;
}

C++: #include<iostream>

using namespace std;

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

	int money = 100000;
	int total = money;
	for(int i = 0; i < n; i++)
	{
		total += money * 0.05;
		money += money * 0.05;
		total = total - total % 10000;
	}
	cout << total << 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*=1000;
    ans=int(ans);
    cout << ans << endl;
    return 0;
}

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

using namespace std;

int main()
{
    int n;
    double debt = 100000;

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

    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
	double a;
	cin>>a;
	int ans=100000;
	for(int b=0;b<a;b++)
	{
		double rev=0;
	   ans=ans*1.05;
	   rev=ans%1000;
	   ans=ans-rev;
	   ans=ans+1000;
		}
		printf("%.15000lf\n",ans);
	}

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

int RoundUp(int Integer, int Power)
{
	int Place = pow(10, Power);
	if(Integer % Place != 0){
		Integer = Place * (Integer / Place + 1);
	}
	return Integer;
}

int main()
{
	int Debt = 100000;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		Debt = RoundUp(1.05 * Debt, 3);//?????¬???????????????????????±????????§??????????????????????????????????????????
	}
	cout << Debt << endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	int debt = 100000;
	for (int i = 0; i < n; i++) {
		debt = debt * 1.05;
		if (debt % 1000)
			debt += 1000;
		debt -= debt % 1000;
	}
	cout << debt << endl;

	return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
main(){
	int a=100000,n;
	cin>>n;
	for(int i=1;i<=n;++i){
		a*=1.05;
	}
	a-=100000;
	if(a%10000>0){
		a=(a/10000+1)*10000;
	}
	a+=100000;
	cout<<a<<endl;
}

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

using namespace std;

int main() {
    int n;
    double debt = 100000;

    cin >> n;

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

    debt /=10000;
    debt = round(debt);

    cout << debt * 10000 << endl; 

    return 0;
}

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

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

	
	
	return 0;
	}

C++: #include<stdio.h>
int main(void)
{
	int n,i,s,z;
	z=100000;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		s=(z*5)/100;
		if(s%1000!=0){
			s=s/1000;
			s++;
			s=s*1000;
		}
		z=z+s;
	//	printf("%d\n",s);
	}
	printf("%d\n",z);
	return 0;
}

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

int main(){
    int n;
    cin >> n;
    int m = 100000;
    for (int i = 0; i < n; i++){
	m *= 1.05;
	if ((int)m % 1000 != 0)
	    m = m - (int)m % 1000 + 1000;
    }
    cout << m << 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/=10000;a=ceil(a);a*=10000;
	cout<<a<<endl;
	return 0;
}

C++: #include <iostream>

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

C++: #include <iostream>

using namespace std;

int debtAfterWeek(int n)
{
	int debt = 100000;
	int last3digits;
	for (int i = 0; i < n; i++)
	{
		debt *= 1.05;
		last3digits = debt % 1000;
		debt -= last3digits;
		if (last3digits != 0)
		{
			debt += 1000;
		}
	}
	return (int)debt;
}

int main()
{
	int n;
	cin >> n;
	cout << debtAfterWeek(n) << endl;
	return 0;
}

C++: p=100000;main(a){for(scanf("%d",&a);a--;p=(p/1000+(p%1000?1:0))*1000)p+=p/20;printf("%d",p);}

C++: #include<iostream>

using namespace std;

double money = 100000;

int i;

int main()
{
	cin>>i;
	for(i;i>0;--i)
	{
		money *= 1.05;
		money = (long)(money/1000+0.9)*1000;
	}
	printf("%.0lf\n",money);
}

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

int main() {
    clock_t cTimeStart, cTimeEnd;
    cTimeStart = clock();           // 現在時刻
    long long total=100000;
    int N;
    cin>>N;
    for(int i=0;i<N;++i){
    	total=total*1.05;
    	if(total%1000>0)total=(total/1000+1)*1000;
    }
    cout<<total<<endl;
    cTimeEnd = clock();           // 現在時刻
//    cout<< "処理時間:" <<(cTimeEnd - cTimeStart)/1000 << "[ms]" << endl;

	return 0;
}

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

int main() {
	int n;
	cin >> n;
	long s = 100000;
	for (int i = 0; i<n; i++) {
		s = s * 1.05;
		int s1 = s % 1000;
		if (s1 != 0) {
			s = s - s1 + 1000;
		}
	}
	cout << s << "\n";
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
  int n,i;
  int temp;
  double ans = 100;
  cin >> n;
  for(i = 0;i < n;i++){
    ans *= 1.05;
    temp = (int)ans;
    if((double)temp != ans){
      ans = (double)temp + 1;
    }
  }
  cout << ans << "000" << endl;
  return(0);
}

C++: #include<iostream>

using namedspace 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>
#include<iostream>
using namespace std;
int main(){
  int n=0;
  int m=100000;
  cin>>n;
  for(int i=0;i<n;i++){
	  m=m*1.05;
	  if(m%1000!=0){
		  m=m+999;
		  m=m/1000;
		  m=m*1000;
	  }
  }
  cout<<m<<endl;

  return 0;
}

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

using namespace std;

signed main(){
    int n;
    double ret = 100000;
    scanf( "%d", &n );
    while( n > 0 ){
        ret *= 1.05;
        ret = ceil( ret / 1000 ) * 1000;
        n--;
    }
    printf( "%.1f", ret  );
    return 0;    
}