Go: package main

import "fmt"

var (
	dept    int = 100000
	addDept int = dept / 100 * 5
)

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

	nWeekDept := dept + addDept*week

	if nWeekDept/addDept%2 != 0 {
		nWeekDept += addDept
	}
	fmt.Print(nWeekDept)
}

C++: #include<iostream>

using namespace std;



int loan(int n){
   int amount=100000;
   for(int i=0;i<n;i++){
      amount+=amount*0.05;
      if(amount%1000!=0) amount=(amount-(amount%1000))+1000;
   }
   return amount;
}


int main(){

   int n;

   cin >>n;

   cout <<loan(n)<<endl;

   return 0;

}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(ll i=0;i<n;++i)
#define rrep(i,n) for(int i=n-1;i>=0;--i)
#define yesno(flg) if(flg){cout<<"YES"<<endl;}else{cout<<"NO"<<endl;}
#define MAX_N 1002
#define i197 1000000007
#define Vi vector<int>
#define Vl vector<long long>
#define pb(a) push_back(a)

using namespace std;

typedef long long ll;
typedef pair<ll,ll> P1;
typedef pair<int,int> Pi;
typedef pair<double,Pi> Pdi;
typedef pair<ll,int>Pli;
typedef pair<P1,ll> P2;
const ll INF=100000000001;
int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};
struct Road{double cost;int a,b;};
struct edge{int to,cost;};
struct pos{
	int x,y,cost;
};
ll gcd(ll a2,ll b2){
	int t;
	while(b2!=0){
		t=a2%b2;
		a2=b2;
		b2=t;
	}
	return a2;
}
ll lcm(ll a1,ll b1){
	if(a1*b1==0){return 0;}
	return (a1*b1/gcd(a1,b1));
}


int main() {

	int n;
	cin>>n;

	ll t=100000;
	rep(i,n){
		t+=t*0.05;
		if(t%1000>0)t=t+1000-t%1000;
	}
	cout<<t<<endl;

	return 0;
}

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

int main(void)
{
	int n;
	int money = 100000;
	cin >> n;

	while(n > 0){
		n--;
		money = money + money*0.05;
		if(money % 1000 > 0)
			money = money-money%1000+1000;
	}
	cout << money << endl;


	return 0;
}

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

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

    return 0;
}

C++: #include <iostream>
using namespace std;
int solve(int debt, int n);
int addInterest(int debt);

int main (int argc, char* argv[])
{
    int n;
    int debt = 100000;
    cin >> n;
    cout << solve(debt, n) << endl;
	return 0;
}

int solve(int debt, int n){
    if(n == 0){
        return debt;
    }
    return solve(addInterest(debt), n - 1);
}

int addInterest(int debt){
    double interest = 0.05;
    return ((int)(debt * (1 + interest)) + 999) / 1000 * 1000;
}

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

int main(){

  int n;
  int sum=100000;

  cin>>n;

  for(int i=0;i<n;++i)
    sum=sum+sum*0.05;

  if(sum%10000!=0){
    sum=sum/10000;
    sum=sum+1;
    sum=sum*10000;
  }

  cout<<sum<<endl;

}

C++: #include<bits/stdc++.h>

using namespace std;

main(){
	int n;
	cin >> n;
	int s=0;
	int a=100000;
	while (s<n){
		s++;
		a=a+a*0.05;
		a=((a+999)/1000)*1000;
	}
	printf("%d\n",a);
}

C++: #include <iostream>

using namespace std;

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

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

using namespace std;
int main() {
  int N;
  int money = 100;
  cin >> N;
  for (int i = 0; i < N; i++) {
    money = ceil(money * 1.05);
  }
  cout << money * 1000 << endl;
  return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
    int n; cin >> n;
    if(n % 2 != 0) n += 1;
    int rent =  n * 100000 *0.05;
    cout << 100000 + rent << endl;
    return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
double n;
cin >> n;
int res;
res = 10*pow(1.05,n)+0.5;
cout << 10000*res << endl;
return 0;
}

C++: #include <iostream> //üoÍ
#include <cmath>

using namespace std;

int main(){
	long long money = 100000;
	int n;
	cin >> n;
	for(int i=0;i<n;i++){
		money =  ceil((money * 1.05)/1000)*1000;
	}

	cout << money << endl;
	
	return 0;
}

C++: #include<cstdio>

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

	return 0;
}

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

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

	cin >> n;

	for(int i = 1; i <= n; i++) {
		money += money * 0.05;
	}

	money /= 10000;
	money++;
	money *= 10000;

	cout << money << endl;
}

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

double calcDebt(double debt)
{
    debt = debt * 1.05;
    debt = ceil(debt / 1000) * 1000;
    return debt;
}

int main()
{
    int n;
    double debt = 100000;
    cin >> n;
    for(int c = 0; c < n; c++)
        debt = calcDebt(debt);
    cout << debt << endl;
    return EXIT_SUCCESS;
}

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

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

int main()
{
    int n, d = 100000;
    cin >> n;
    for(; n-- ;)
    {
       if((d + d*5/100)%1000 == 0) d = d + d*5/100;
       else
       {
            d = d + d*5/100 + (1000-(d + d*5/100)%1000);
       }
    }
    cout << d << endl;
}

C++: #include <iostream>
#include <queue>
#include <vector>
#include <math.h>
#include <algorithm>
#include <iomanip>
#include <string>
using namespace std;

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

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

using namespace std;

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

	return 0;
}

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

int main()
{
	int get ;
	int debt = 100000 ;
	int num[4] ;

	cin >> get ;
	for( int i = 0 ; i < get ; i ++ )
	{
		debt *= 1.05 ;
		int tmp = debt ;

		for( int j = 0 ; j < 4 ; j ++ )
		{
			num[j] = (tmp % 10) ;
			tmp /= 10 ;
		}

		if( num[0] != 0 || num[1] != 0 || num[2] != 0 )
		{
			debt -= (num[0] + num[1]*10 + num[2]*100) ;
			debt += 1000 ;
		}
	}

	cout << debt << endl ;
	return 0 ;
}

C++: #include <iostream>

using namespace std;

int main(){
  int i;
  int money = 100000;
  cin >> i;
  for(; i > 0; i--){
    money += money*0.05;
  }

  cout << money << endl;
  int cutoff = 10000;

  double dif = ((int)money/cutoff)*cutoff;
  cout << dif << endl;
  if(money - dif > 0){
    money = dif + cutoff;
  }
  cout << money << endl;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
typedef long long ll;
int main()
{
	int n;
	cin>>n;
	ll sum=100000;
	double t;
	for(int i=1;i<=n;i++)
	{
		t=sum*0.05;
		t=t/1000;
		t=ceil(t);
		t=t*1000;
		sum=sum+t;
	}
	cout<<sum<<endl;
	return 0;
}

C++: #include<stdio.h>

int main() {
	int n;
	double debt=100000;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		debt = debt + debt*0.05;
		if ((int)debt % 1000 > 0) {
			debt = debt - (int)debt % 1000;
			debt += 1000;
		}
	}
	printf("%d\n", (int)debt);

	return 0;
}

C++: #include <iostream>

using namespace std;

int main(){

	int n;
	cin >> n;
	int debt = 100000;
	for(int i = 0; i < n; i++){
		debt += debt/20;
		int lower = debt % 1000;
		debt -= lower;
		if(lower != 0)
			debt += 1000;
	}

	return 0;
}

C++: #include <stdio.h>

int main(){
  int money=100000;
  int remain;
  int weeks;
  float temp;
  int i;

  scanf("%d", &weeks);
  for(i=0; i<weeks; i++){
    temp=(float)money*1.05f;
    money=(int)temp;
    remain=money%1000;
    money+=1000-remain;
  }
  printf("%d", money);

  return 0;
}