Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextInt() int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

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 main() {
	scanner.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(ans)
}

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

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

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

	cout << money << endl;
}

C++: #include<iostream>
int main(){
	int a,i,n;
	a=100000;
	std::cin>>n;
	for(i=0;i<<n;i++){
		a=a*1.05;
		if(a&1000!=0){
		a=a-a%1000;
		a=a+1000;
		}
	}
	std::cout<<a<<std::endl;
	return 0;
}

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

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

using namespace std;

int main() {
	
	double weeks=0;
	double debit=100.0;
	
	
	cin >> weeks;
	
	for(int i=0; i<weeks;i++){
		debit=debit+debit*0.05;
		debit=ceil(debit);
	}
	
	cout <<debit*1000;
	
	
	return 0;
}

C++: #include<iostream>
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<<(int)n<<endl;
  return 0;
}

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

using namespace std;

int main(){
    int week, fraction;

    cin >> week;
        double debt = 100000;
        double const rate = 1.05;

        for (int i = 0; i < week; i++){
            debt = debt*rate;
            fraction = (int)debt % 1000;

            if (fraction > 0){
                debt = debt + 1000 - fraction;
            }
        }
        cout << debt << endl;

    return 0;
}

C++: #include<stdio.h>
int main(void){
	int n,k=100000;
	scanf("%d",&n);
	while(n>0){
		n--;
		k*=1.05;
		k=(k/1000+1)*1000;
	}
	printf("%d\n",k);
	return 0;
}

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

int main() {
	double m = 100;
	int n;

	std::cin >> n;
	for (int i = 0; i < n; ++i) {
		m *= 1.05;
		m = std::ceil(m);
	}
	std::cout << m * 1000 << std::endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	bool bo=false;
	int n,a=100000;
	cin>>n;
	for(int i=0;i<n;i++){
		a+=a*0.05;
	}
	if(a%10000==0 && a%1000==0 && a%100==0 && a%10==0){
		bo=true;
	}
	a/=10000;
	if(bo==false){
		a=a+1;
	}
	cout<<a*10000<<endl;
	return 0;
}

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

int n;
double rent = 100000;

int main()
	{
		cin>>n;
		for(int i=0;i<n;i++)
		{
		 rent = rent * 1.05 ;
		 if( rent % 1000 != 0)
		 rent = rent + 1000;
		 
		}
		printf("%.0lf\n",rent);
		return 0;
	}

C++: #include<iostream>

using namespace std;
   
void Loan()
{
    int m;
    int sum = 100000;
    int week;
    
    cin>>week;
    
    for(int i=0; i<week; i++)
    {
        sum = sum * 1.05;
        
        m = sum % 1000;
        
        if(m > 0)
        {
            sum = sum - m + 1000; 
        }
        
    }
    
   cout<<sum<<endl;
   return;
}
     
int main()
{     
    Loan();
    return 0;
}

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

int round(int x) {
    int y = x % 1000;
    if (y == 0) return x;
    else return x + 1000 - y;
}

int main() {

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

    cout << debt << endl;

    return 0;
}

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

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

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

int main()
{
	int n, debt = 100000;
	double risi = 1.05;

	cin >> n;
	for(int i = 0; i < n; i++){
		// ???????????????
		debt *= risi;
		cout << debt << endl;

		// ????????????????????????
		if(debt % 1000 > 0)
			debt += 1000 - (debt % 1000);
	}
	cout << debt << endl;

	return 0;
}

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

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

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

	printf("%d\n", money);

	return 0;
}

C++: #include<iostream>

using namespace std;

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

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

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

    int a=100000;

    while(n--){
        a+=a/20;
        a=a/1000*1000+(a%1000!=0?1000:0);
    }
    printf("%d\n",a);

    return 0;
}

C++: #include<iostream>

using namespace std;

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

C++: #include <stdio.h>
typedef long long ll;

int main(void) {
  ll i, n, ans = 100000;
  scanf("%lld", &n);
  for(i = 0; i < n; ++i) {
    ans = ans + ans / 20;
    if(ans % 1000) ans -= ans % 1000, ans += 1000;
  }
  printf("%lld\n", ans);
  return 0;
}

C++: #include<bits/stdc++.h>
typedef long long ll;
using namespace std;
int INF = 1e9;
int MOD = 1e9+7;
main(){
    int N;
    int debt = 100000;
    cin >> N;
    for(int i = 0;i < N;i++){
        debt *= 1.05;
        debt = (debt+999)/1000*1000;
    }
    cout << debt << endl;
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <string>
#include <vector>
#include <set>
#include <stack>
#include <functional>
#define rep(i, n) for(int i = 0; i < n; i++)
#define ll long long
using namespace std;


int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
    int debt = 100000,   n;
    cin >> n;
    rep(i, n) {
        debt *= 1.05;
        if (debt % 1000 > 0) {
            debt = (debt / 1000 + 1) * 1000;
        }
    }
    cout << debt << "\n";
	return 0;
}

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

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