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<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;
	}
	int m = (int)money;
	cout << m << endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

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

	int ans = 100000;
	while(n--){
		ans*=1.05;
		if(ans%1000)
			ans=(ans/1000+1) * 1000;
	}
	cout << ans << endl;
	return 0;
}

C++: #include <stdio.h>

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

C++: #include<iostream>
using namespace std;
int main(){
	float a,n,i,b,j,ans=0;
	a=100000;
	cin>>n;
	for(i=1;i<=n;i++){
		a=a*1.05;
	}
	for(i=1;1000<=a;i++){
		a=a-1000;
	}
	ans=i*1000;
	cout<<ans<<endl;
	return 0;
}

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

int n;

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

C++: #include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include <windows.h>

int main(void);
int kiriage(int num);


int main(){
	int n;					//n週
	int debut = 100000;		//借金
	std::cin >> n;

	for (int i = 0; i < n; i++)
	{
		debut *= 1.05;
		std::string str_debut = std::to_string(debut);
		if ((str_debut[str_debut.length() - 1] == '0') &&
			(str_debut[str_debut.length() - 2] == '0') &&
			(str_debut[str_debut.length() - 3] == '0')
			){
			;
		}
		else{
			debut = kiriage(debut);
		}
	}

	std::cout << debut << std::endl;

	//while (1);
	return 0;
}

//1000円未満を切り上げる関数
int kiriage(int num){
	num = num / 1000 * 1000 + 1000;
	
	return num;
}

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

using namespace std;

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

    cin >> n;

    for(int i = 0;i < n;i++){
        debt *= 1.05;
        if(debt % 1000 != 0){
            debt += 1000;
        }
         debt -= (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/=1000;
    start+=1;
    start*=1000;
  }
  printf("%d\n",start);
  return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <list>
#include <algorithm>
#include <cmath>
#include <stack>
#include <set>
using namespace std;

#define REP(i,n) for(int (i)=0; (i)<(n); (i)++)
#define FOR(i,a,b) for(int (i)=(a); (i)<(b); (i)++)
#define PUSH(n,v) for(int i=0; i<(n); i++) {int j; cin >> j; v.push_back(j);}
#define ALL(v) v.begin(), v.end()

long money = 100000;

void oneweekafter() {
    money *= 1.05;
    money = ceil(money / 1000.) * 1000;
}

int main() {
    int n;
    cin >> n;
    REP(i,n) {
        oneweekafter();
    }
    cout << money << endl;
    return 0;
}

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

int main(){
int n;
double a=100;
cin>>n;
while(n--){
	a=a*5/100;
        a=ceil(a);
}
cout<<a*1000;
return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(void){
   int a;
   float b = 100000.0f;
   std::cin >> a;
   if(a < 100 && a > 0){
       for(int i = 0; i < a; i++){
           b *= 1.05f;
           b /= 1000;
           double c = ceil(b);
           b = c * 1000;
       }
       std::cout << b << std::endl;
   }
}

C++: #include <iostream>

using namespace std;

int main() {
  int n;
  cin >> n;
  int debt = 100000;
  for (int i = 0; i < n; i++) {
    debt *= 1.05;
    debt = (debt + 999) / 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("%.15000000000lf\n",ans);
	}

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


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

C++: #include <stdio.h>

int main()
{
	int n,zan = 100000;

	scanf("%d",&n);
	for(int i = 0; i < n; i++){
		zan += zan * 0.05;
		if(zan%1000 > 0){
			zan /= 1000;
			zan++;
			zan *= 1000;
		}
	}
	printf("%d\n",zan);

	return 0;
}

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

int main(){
	int m=100000,n;
	cin>>n;
	for(int i=0;i<n;i++){
		m=m/20*21;
		m+=(1000-(m-1)%1000)-1;
	}
	cout<<m<<endl;
	return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int interest(int);

int main(void){
	int loan=100000,week;

	cin >> week;
	for(int i=0;i<week;i++)
		loan+=interest(loan);

	cout << loan << endl;

	return 0;
}

int interest(int loan){
	float tmp=loan*0.05;

	if(tmp>(int)tmp/1000*1000)
		tmp=((int)tmp/1000+1)*1000;

	return (int)tmp;
}

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

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

C++: #include <iostream>

int main(){
	int n,debt=100000;
	std::cin>>n;
	for(int i=0;i<n;i++){
		debt*=1.05;
		debt=debt%1000 ? debt/1000*1000+1000 : debt;
	}
	std::cout<<debt<<'\n';
	return 0;
}

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

C++: #include <iostream>
#include <string>
#include <map>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <math.h>
#include <iomanip>
using namespace std;
int main(){
  int n,res;
  int m=100000;
  cin>>n;
  if(!n){cout<<m<<endl;return 0;}
  for(;n;n--){
    m*=1.05;
    if(m%1000){
      m+=1000-(m%1000);
    }
  }
  cout<<m<<endl;
  return 0;
}

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

int main(){

	int i,n;
	int x=100000;

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

	std::cout << x << std::endl;

}

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

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

	cin >> n;

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

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

int main(void)
{
	long long num = 100000, day;
	cin >> day;

	for (int i = 0; i < day; i++) {
		num *= 1.05;
		if (num % 1000) num = num - (num % 1000) + 1000;
	}
	cout << num << endl;
	
	return 0;
}

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