Go: package main

import "fmt"

func roundUp1000(dept float64) float64 { 
	iDept := int(dept)
	if iDept-(iDept/1000*1000) != 0 { 
		iDept = ((iDept / 1000) + 1) * 1000 
	}
	return float64(iDept)
}

func main() {
	var week int
	fmt.Scan(&week)

	dept := 100000.0
	for i := 0; i < week; i++ {

		dept *= 1.05
		dept = roundUp1000(dept)
	}

	fmt.Println(int(dept))
}

C++: #include <iostream>
#include <cmath>
using namespace std;
inline int ceil(double x, double base) {
    return ceil(x / base) * base;
}
int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int n; cin >> n;
    double ret = 100000;
    while (n--) {
        ret = ceil(ret * 1.05, 1000);
    }
    cout << ret << endl;

    return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;
inline int ceil(double x, double base) {
    return ceil(x / base) * base;
}
int main() {
    //cin.tie(0);
    ios::sync_with_stdio(false);

    int n; cin >> n;
    cout << ceil(100000.0 * pow(1.05, n), 10000.0) << "\n";

    return 0;
}

C++: #include <iostream>

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 % 1000;
        }
    }
    cout << debt << endl;
    return 0;
}

C++: #define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

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

int main(){
  int n;
  cin>>n;
  
  int ans=100000;
  rep(i,n){
    ans += ans/20;
    if(ans%1000 != 0) ans=(ans+999)/1000*1000;
  }
  
  cout<<ans<<endl;
  
  return 0;
}

C++: #include<stdio.h>

int main(void){
	unsigned int ans=100000,n;
	scanf("%d",&n);
	for(int i=0;i<n;i++){
		ans=(ans*105)/100;
		ans=ans/1000+(ans%1000>0?1:0);
		ans*=1000;
	}
	printf("%d\n",ans);
	return 0;
}

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

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

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

void solve()
{
	int n;
	cin >> n;
	int sum = 100000;
	for(int i = 0; i < n; ++i)
	{
		sum *= 1.05;
		int remainder = sum % 1000;
		if(remainder)
		{
			sum = sum - remainder + 1000;
		}
	}
	cout << sum << endl;
}

int main()
{
	solve();
	return(0);
}

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

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

using namespace std;

int main()
{
	int n, i, a, kinngaku, seisuu;
	double zissuu;
	
	
	cin >> n;
	
	kinngaku = 100000;
	for(i = 0; i < n; i++)
	{
		kinngaku = kinngaku * 1.05;
		
		seisuu = kinngaku / 1000;
		
		zissuu = (double)kinngaku / 1000;
		
		if(zissuu > seisuu)
		{
			seisuu = seisuu + 1;
		}
		kinngaku = seisuu * 1000;
	}
	
	cout << kinngaku << endl;
	
	return 0;	
}

C++: #include<iostream>

using namespace std;


int main(void){

  int n;
  double money=100000;
  int i;

  cin >> n;

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

    money*=1.05;
    money/=1000;
    money+=0.9;

    money=(int)money;
    money*=1000; 
    
    
    
  }



  cout << (int)money << endl;




  return 0;
}

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

using namespace std;

int debt(int a){
    if (a == 0){
        return 100000;
    }
    else{
        float b;
        b = ceil(debt(a-1)*1.05/1000);
        return int(b*1000);
    }
}

int main(){
    int n;
    cin >> n;
    cout << debt(n) << endl;
}

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

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

C++: #include<iostream>
#include<string>
#include<queue>
#include<stack>
using namespace std;
int main(){
	stack<int>st;
	bool bo=false;
	int n,a=100000;
	cin>>n;
	for(int i=0;i<n;i++){
		a+=100000*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<algorithm>
#include<vector>
#include<cmath>
#include<cstdio>
#include<string>
typedef long long int ll;


using namespace std;

ll up(ll rent){
	if(rent%1000!=0)return (rent/1000*1000+1000);
	else return rent;
}

int main(){
	ll rent=10*10000;
	int n;
	cin>>n;
	for(int i=0;i<n;i++){
		rent*=1.05;
		rent=up(rent);
	}
	cout<<rent<<endl;
	return 0;
}

C++: #include <iostream>
using namespace std;
int main() {
 int n,s=100000;
 cin >> n;
 for ( n;n>0;n--) s=1000*((int)((s*1.05+999)/1000));
 cout << s << endl;
 return 0;
}

C++: #include <iostream>

using namespace std;

int main() {

	int i=0, n, debt=100000;

	while(1) {
		cin >> n;
		if(n<101)
			break;
	}

	while(i<n) {
		debt*=1.05;
		i++;
	}

	debt=(debt+9999)/10000*10000;

	cout << debt << endl;

	return 0;

}

C++: #include<stdio.h>

int main(void)
{
	int i,n,loan = 100000;
	while (1){
		scanf("%d", &n);
		if (0 <= n&&n <= 100)
			break;
	}
	for (i = 0; i < n; i++){
		loan *= 1.05;
		if (loan % 1000 != 0){
			loan -= loan % 1000;
			loan += 1000;
		}
	}
	printf("%d\n", loan);
	return 0;
}

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

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

    if(debt % 10000 != 0){
        debt = (debt + 9999) / 10000;
        debt = debt * 10000;   
    }

    cout << debt << endl;

    return 0;
}

C++: #include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <deque>
#include <algorithm>
#include <iomanip>
#include <functional>
#include <numeric>

#define REP(i, n) for(int i = 0;i < (n); i++)
#define REP2(i, x, n) for(int i = (x); i < (n); i++)
#define REPR(i, n) for(int i = (n); i >= 0; i--)

#define ALL(a) (a).begin(),(a).end()
#define SORT(c) sort((c).begin(),(c).end())
#define DESCSORT(c) sort(c.begin(), c.end(), greater<int>())

#define LL long long int
#define LD long double

#define PI 3.14159265358979

using namespace std;

//================================================

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	
	int N, yen = 100000;
	cin >> N;

	REP(i, N) {
		yen *= 1.05;
		if (yen % 1000 != 0) {
			yen += 1000;
			yen -= yen % 1000;
		}
	}

	cout << yen << "\n";
	return 0;
}

C++: #include <iostream>

int main(){
int n;
std::cin >> n;
double result=100;
for(int i=n;i;i--){
result*=1.05;
result=(int)(result+0.9);
}
result*=1000;
std::cout << result;

return 0;
}

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

int main()
{
	int n;
	cin >> n;
	static int z = 100000;
	for (int i = 0; i < n; i++) {
		int a = z*1.05;
		if (a % 1000 != 0) {
			int b = a / 1000;
			++b;
			a = b * 1000;
		}
	}
	cout << z << endl;
	return 0;
}

C++: #include <stdio.h>

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

	while(scanf("%d", &n) != EOF){
	for(int i=0 ; i<n ; i++){
		money += 100000.0 * 0.05;
		money += 1000 - (money%1000);
	}
	printf("%d\n", money);
}
	return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include <iostream>

using namespace std;

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