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(int(ans))	// intにしないと指数つき表現になってしまう
}

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp*=1.05
		tmp = Ceil(tmp, -3)
	}
	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>
#include <string>
using namespace std;
int main() {
double n=100000;
int i,b;
cin>>b;
for(i=0;i<b;i++){
n*=1.05;
n=(int)(n+999)/1000*1000;
}

cout<<n<<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>
#include <cstdio>
using namespace std;

int main(void){
  int money = 100000, weeks;
  cin >> weeks;
  for(int i = 0; i < weeks; i++){
    money += (money / 100) * 5;
    int underTp = money % 1000;
    if(underTp != 0){
      money -= underTp;
      money += 1000;
    }
  }
  cout << money << endl; 
  return 0;
}

C++: #include<iostream>

using namespace std;

int main(void){
	long money = 100000;
	int n;
	while(cin >> n){
		for(int i = 0; i < n; i++){
			money *= 1.05;
			if(money / 100 % 10) money = money/1000*1000 + 1000;
		}
		cout << money << endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++) 
#define ALL(n) begin(n),end(n)
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
const int M{ 100000 };
int main()
{
    int N;
    cin >> N;
    int res{};
    REP( i, N )
    {
        res += M * 0.05;
    }
    cout << ( M + res + 9999 ) / 10000 * 10000 << endl;
    return 0;
}

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

int main(){

int n;
scanf("%d",&n);

long debt=100000;

for(int i=0;i<n;i++)
	debt=(long)(ceil(debt*1.05/1000.0))*1000;

printf("%ld\n",debt);

return 0;		
}

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



int main(void){
	

	unsigned long int n, sum = 100000;
	long double Ceil;
	cin >> n;

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

		sum /= 1000;
		Ceil = ceil(sum*1.05);
		sum=Ceil*1000;
	}		
	cout << unsigned long int(sum) << endl;


	
	return 0;
}

C++: #include <stdio.h>

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

	scanf("%d", &n);
	for(int i=0 ; i<n ; i++){
		money *= 1.05;
		if(money%1000 != 0){
			money += 1000 - (money%1000);
		}
	}
	printf("%d", money);

	return 0;
}

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

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

    
    cout <<loan<<endl;
    
    return 0;
}

C++: #include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;

int calc(int n) {
	n *= 1.05;
	if (n % 1000)n = (n / 1000 + 1) * 1000;
	return n;
}
int main() {
	int n; cin >> n;
	int a = 100000;
	rep(i, n) {
		a = calc(a);
	}
	cout << a << 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 = ceil((debt * 1.05) / 1000) * 1000;
	}

	cout << debt << endl;

	return 0;
}

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

int main()
{
	int money = 100000;
	int n;
	cin >> n;
	while (n--)
	{
		money *= 1.05;
	}
	money -= (money % 10000);
	money += 10000;

	cout << money << endl;

	return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

using ll = long long;
using lli = ll int;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


int main()
{
  int n, sum=100000;
  int i, j, k;
  int tot, ans, num;
  
  cin >> n;
  for(i=0; i<n; i++){
    sum += sum*(i+1)*0.05;
    sum = (sum/1000+1)*1000;
  }
  cout << sum << endl;
    return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
	int n;
	double debt = 100000;
	double temp = 100000;
	
	cin >> n;
	
	for(int i = 0;i < n; i++){
		debt *= 1.05;
//		cout << i << "TÚ" << debt << endl;
	}
	
	for(int j = 0;; j++){
		temp += 10000;
		if(temp > debt){
			break;
		}
	}
	
	cout << temp << endl;
}

C++: #include <stdio.h>

int main() {
    int weeks = 0;
    double money = 100.0d;
    scanf("%d", &weeks);

    for (int i = 0; i < weeks; ++i) {
        money *= 1.05d;
        int temp = (int) money;
        if (temp < money) {
            temp++;
        }
        money = temp;
    }

    int result = (int) money;
    result *= 1000;
    printf("%d", result);

    return 0;
}

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.07);
    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>
//#include<algorithm>
//#include<cmath>
//#include<string>
//#include<cctype>
//#include <vector>
using namespace std;
int main(){
	int a=100,n;
	cin >> n;
	while (n--) a = ceil(a*1.05);
	cout << a * 1000 << endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
	int n;
	cin>>n;
	
	int dept=100000;
	
	for(int i=0;i<n;i++){
		dept+=dept/20;
		if(dept%1000)
			dept+=1000-dept%1000;
	}
	cout<<dept<<endl;
	
	return 0;
}

C++: #include <iostream>

using namespace std;

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

	while (cin >> n ){	
		for (; n--; r % 1000 ? r += 1000 - r % 1000: r){
			r *= 1.05;
		} // end for
		cout << r << endl;	
	} // end while

	return 0;
}

C++: #include<stdio.h>
int main(){
    int  s=100000;
    int n;
    scanf("%d",&n);
    for(;n--;){
        if(int(s*1.05)%1000==0){
            s=int(s*1.05);
        }else{
            s= int(s*1.05) + (1000- int(s*1.05) % 1000);
        }
    }
    printf("%d\n",s);
    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;
		}
	}
	int m = (int)money;
	cout << m << endl;
	return 0;
}

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

int main(){
    int n;
    cin >> n;
    int debt = 100000;
    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(){
	int n, t = 100000;
	cin >> n;
	for( int i = 0; i < n; ++i){
		t = 1.05 * t;
		t = (t/1000)*1000 + ((t % 1000 != 0) ? 1000 : 0);
	}
	cout << t << "\n";
	return 0;

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

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