Go: package main

import "fmt"

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

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

	if week != 0 {
		nWeekDept = dept + addDept*week
	}

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

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

int main()
{
	int week, n = 100000;
	cin >> week;
	for (int i = 0; i < week; i++)
	{
		n += n * 0.05;
		//cout << n << endl;
		if (n % 1000 != 0) n = ((n + 1000) / 1000) * 1000;
	}
	cout << n << endl;
	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 <bits/stdc++.h>

using namespace std;

#define LOG(...) fprintf(stderr, __VA_ARGS__)
//#define LOG(...)
#define FOR(i, a, b) for(int i=(int)(a); i<(int)(b); ++i)
#define REP(i, n) for(int i=0; i<(int)(n); ++i)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define EXIST(s, e) ((s).find(e)!=(s).end())
#define SORT(c) sort(ALL(c))
#define RSORT(c) sort(RALL(c))
#define SQ(n) (n) * (n)

typedef long long ll;
typedef unsigned long long ull;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vb> vvb;
typedef vector<vi> vvi;
typedef vector<vll> vvll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

int main() {
  int n, m = 100000;
  cin >> n;
  REP(i, n) m = ceil(m * 1.05 / 1000) * 1000;
  cout << m << endl;
}

C++: #include<iostream>

using namespace std;

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

C++: #include<iostream>
//#define DEBT 100000

using namespace std;

main(){
int inNum,i;
int debt = 100000;

cin>>inNum;
for(i = 0; i < inNum; i++){
debt*=1.05;
}
debt/=10000;
debt+=1;
debt*=10000;
cout<<debt<<endl;
}

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

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

int main() {

    int n;
    long debt = 100;
    cin >> n;

    for(int i = 1; i <= n; i++) {
        int r = 0;
        if (debt % 20) {    r = 1;  }

        debt = debt * 1.05 + r;
    }

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

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

int main(){
    int n, a = 100000, b = 105;
    cin >> n;
    for(int i = 0;i < n;i++){
      a *= b;
      a /= 100; 
    }
    a /= 1000;
    a *= 1000;
    cout << a + 10000 << endl;
    }

C++: // Reverse Sequence
#define _USE_MATH_DEFINES
#include <cstdio>
#include <cstring>
#include <cmath>
#include <iostream>

using namespace std;

int main()
{
	unsigned int n;
	
	cin >> n;
	
	double a = 100000;
	for (int i = 0; i < n; i++)
	{
		a *= 1.05;
		a /= 1000;
		a = ceil(a);
		a *= 1000;
	}
	cout << a << endl;
	
	return 0;
}

C++: #include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<functional>

using namespace std;

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

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

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

  cin >> n;
  for(int i = 0; i < n; i++)
    mon += mon*0.05;
  cout << mon << endl;

  return 0;
}

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

int main(){

	int n, i;
	double debt = 100000;
	cin >> n;

	for( i=0;i<n;i++ ){
		debt = debt * 1.05;

		debt /= 1000;
		debt = ceil( debt );
		debt *= 1000;

	}

	cout << (int)debt << endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int a = 100000;

    int n;
    cin >> n;

    while(n--){
        a = int(a * 1.05);
        if( a % 1000 != 0)
            a  = a - (a % 1000) + 1000;
    }
    cout << a << endl;
    return 0;
}

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

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

C++: #include <iostream>

int main()
{
	int weeks = 0;
	int amount = 100000;
	std::cin >> weeks;
	for (int i = 0; i < weeks; ++i) {
		amount = amount * 105 / 100;
		amount = (amount + 999) / 1000 * 1000;
	}
	std::cout << amount;

	return 0;
}

C++: #include <iostream>

int main(){
        int n;
        while(std::cin >> n){
                double result=100;
                while(n--){
                        result*=1.05;
                        if(result%1000!=0)result+=1000-result%1000;
                }

                result*=1000;
                std::cout << (int)result << std::endl;
        }

        return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int calcDebtByWeek(int);

int main(void){
	for(int n; cin >> n; cout << calcDebtByWeek(n) << endl);

	return 0;
}

int calcDebtByWeek(int n){
	int currentDebt = (int)1e5;

	while(n --){
		currentDebt = int(currentDebt * 1.05);

		if(currentDebt % 1000) {currentDebt /= 1000; currentDebt ++; currentDebt *= 1000; }
	}	
	return currentDebt;
}

C++: #include<iostream>

using namespace std;

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

	cin >> n;

	for (int i = 0; i < n; ++i) {
		result += (result * 5) / 100;
		if (result % 1000) {
			result -= result % 1000;
			result += 1000;
		}
	}

	cout << result << endl;
	return 0;
}

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

int main() {
    int n;
    double m = 100000.;
    long long int part;
    std::cin >> n;

    for (;n--;) {
        m *= 1.05;
        m = std::floor(m);
        part = (long long int )m % 1000;
        if (part > 0) {
            m += 1000. - (double)part;
        }
    }

    std::cout << (long long int) m << std::endl;

    return 0;
}

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

int main() {
    int n;
    cin >> n;
    cout << 100000 + 5000 * (n+1) << endl;
    return 0;
}

C++: #define _USE_MATH_DEFINES
#include <iostream> 
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std; 
int main(){
	int n, r;
	int d = 100000;
	cin >> n;
	for(int i = 0; i < n; i++){
		r = d*1.05;
		if(r%1000!=0){
			while(r%1000!=0){
			r = r+1;
			}
		}
		d = r;
	}
	cout << d << endl;
	return 0;
}

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

int round(double num);

int main(){
	int n=100;
	int w;
	cin >> w;

	for(int i=0; i<w; i++){
		n = round(n*1.05);
	}

	cout << n*1000 << endl;

	return 0;
}

int round(double n){
	int m=n;

	if(n>m) return m+1;
	if(n==m) return m;
}

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

double money(double x, int target, int depth = 0) {
  if (x - (double)((int)x / 1000) * 1000 > 0) {
    x = (double)((((int)x / 1000) + 1) * 1000);
  }
  if (target == depth) { return x; }
  return money(x * 1.05, target, depth + 1);
}

int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int n, x;
  cin >> n;

  cout << money(100000.0, n) << endl;

  return 0;
}