Go: package main

import "fmt"

var (
	dept    float64 = 100000
	addDept float64 = dept * 0.05
)

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

	nWeekDept = dept + (addDept * float64(week))

	if int(nWeekDept)%1000 != 0 {
		nWeekDept += addDept
	}
	fmt.Println(nWeekDept)
}

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.999;

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



  cout << (int)money << endl;




  return 0;
}

C++: #include<iostream>

using namespace std;

int main(void){
  int n,a=100000;

  cin >> n;
  while(n--){
    a=a*5/100+a;
    if(a%1000){
      a/=1000;
      a=a*1000+1000;
    }
  }
  cout << a << endl;

  return 0;
}

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

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

using namespace std;

int main()
{
	int n;
	double money=100;
	cin >> n;
	for (size_t i = 0; i < n; i++)
	{
		money = money*1.05;
		money = ceil(money);
	}
	cout << money * 1000<<endl;
	return 0;
}

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

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

C++: #include<iostream>

using namespace 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>

int main(){
    int money = 100000;
    int n;
    scanf( "%d",&n );
    for( int i = 0;i < n;i++ ){
        int m_buf = money;
        money = ( float )money * 1.05;
        if( money % m_buf > 0 ) money += 1000-( money%m_buf );
    }
    return 0;
}

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

using namespace std;

int debt = 100000;

int main() {
    int n;

    cin >> n;

    while (n--) {
        debt = ceil(debt * 1.05 / 1000) * 1000;
    }

    cout << debt << endl;

    return 0;
}

C++: #include<cstdio>

int main(){
	int n;
	int a = 100;
	scanf("%d", &n);
	for(int i = 0; i < n; i++){
		if(a % 100){
			a = a * 1.05 + 1;
		}else{
			a *= 1.05;
		}
	}
	printf("%d000\n", a);
	return 0;
}

C++: #include<stdio.h>
#include<math.h>
 
int main(){
    int a;
    scanf("%d",&a);
    int b=100000;
    for(int i=0;i<a;i++){
        b*=1.05;
        if(b%1000!=0)b=(b/1000+1)*1000;
    }
    printf("%d\n",b);
}

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

C++: #include <iostream>

int main(void)
{
	uint32_t week;
	std::cin >> week;

	uint32_t base = 100000;

	for (int i = 0; i < week; i++)
	{
		uint32_t rishi = base * 0.05;
		if (rishi % 1000 > 0)
		{
			rishi = rishi / 1000 * 1000;
			rishi += 1000;
		}
		base += rishi;
	}
	
	std::cout << base << std::endl;

	return 0;
}

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

int main()
{

    long long ans = 100000;
    int n;
    cin >> n;
    for(int i=0;i<n;i++)
    {
        ans = ans*105/100;

        if(ans % 1000 > 0) ans = ((ans/1000)+1)*1000;
        else ans = (ans /1000)*1000;

    }
    cout << ans << endl;

    return 0;
}

C++: #include <iostream>

int main()
{
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);
    int debt = 100000;
    int n;
    std::cin >> n;
    for (int i = 0; i < n; ++i) {
        debt += debt / 20;
        if (debt % 1000 != 0) {
            debt += 1000 - (debt % 1000);
        }
    }
    std::cout << debt << std::endl;
}

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

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

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

int main() {
	int weeks;
	cin >> weeks;
	double loan = 100000;
	for (int week = 0; week != weeks; ++week) {
		loan *= 1.05;
		if (int(loan) % 1000 != 0) 
			loan = (loan+1000)-int(loan+1000)%1000;
	}
	cout << fixed << setprecision(0) << loan << 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/=1000;a=ceil(a);a*=1000;
	}
	
	cout<<(int)a<<endl;
	return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(){
  int n;
  double ans=100000;
  cin>>n;
  for(int i=0;i<n;i++){
   ans=ans+ans*0.05;
   ans+=900;
   ans=(int)ans/1000;
   ans=ans*1000;
  }
  cout<<(int)ans<<endl;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
using namespace std;

#define FOR(i,a,b) for(long long int i=(a);i<(b);i++)
#define REP(i,n) for(long long int i=0;i<(n);i++)
#define ALL(s) (s).begin(),(s).end()

#define PI 3.14159265358479

typedef long long int ll;
typedef vector<long long int> vi;

int main(){
	ll n,m=100000;
	cin >> n;
	REP(i, n){
		m *= 1.05;
		if (m % 1000 != 0){
			m -= m % 1000;
			m += 1000;
		}
		cout << m;
	}
	cout << m << "\n";
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <sstream>
#include <cstdlib>
#include <cmath>
 
using namespace std;

int main(){
    long double debt = 100000;
    int n;
    cin >> n;
    for(int i = 0; i < n; i++){
    	debt +=  debt * 0.05;
    	debt /= 1000.000;
    	debt = ceil(debt);
    	debt *= 1000.000;
    }
    cout << debt << endl;
    return 0;
}

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

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

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

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;
        int i=result;
        std::cout << i;

        return 0;
}

C++: import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*1000);}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}

C++: #include<iostream>
#include<cmath>
int main(){
	double yami = 100.000;
	int n;
	std::cin >> n;
	for(int i = 0;i < n; ++i){
		yami += yami / 20.000;
		if(ceil(yami) != floor(yami)){
			yami = ceil(yami);
		}
	}
	std::cout << yami * 1000 << endl;
	return 0;
}

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

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

C++: #include <stdio.h>
int main() {int kane=100000,N;scanf("%d",&N);while (N--) {kane=kane+kane/20;int rest=kane%1000;if (rest) kane+=(1000-rest);}printf("%d\n",kane);return 0;}