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+1)

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

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;
}

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

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

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

int main()
{
 int m = 100000;
 int d, w;

 cin >> d;
 w = d/7;

 for(int i=0; i<w; i++){
  m *= 1.05;
  m += 999;
  m /= 1000;
  m *= 1000;
 }

 cout << m << '\n';

 return 0;
}

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

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

int main(){
int n;
scanf("%d",&n);
double base = 100000;
for(int i=0;i<n;i++){
base*=1.05;
}
printf("%d\n",(int)base);
}

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

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

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

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

typedef long long int ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pair<int, int> > vii;
#define rrep(i, m, n) for(int (i)=(m); (i)<(n);  (i)++)
#define  rep(i, n)    for(int (i)=0; (i)<(n);  (i)++)
#define  rev(i, n)    for(int (i)=(n)-1; (i)>=0; (i)--)
#define vrep(i, c)    for(__typeof((c).begin())i=(c).begin(); i!=(c).end(); i++)
#define  ALL(v)       (v).begin(), (v).end()
#define mp            make_pair
#define pb            push_back
template<class T1, class T2> inline void minup(T1& m, T2 x){ if(m>x) m=static_cast<T2>(x); }
template<class T1, class T2> inline void maxup(T1& m, T2 x){ if(m<x) m=static_cast<T2>(x); }

#define INF 1000000000
#define MOD 1000000009
#define EPS 1E-9

int n;
int res = 100000;

int main()
{
  cin >> n;

  while(n--){
    res *= 1.05;
    if(res % 1000){
      res += 1000;
      res -= res % 1000;
    }
  }

  cout << res << endl;

  return 0;
}

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

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

C++: #include<iostream>
int main(){int w,m=100000;for(std::cin>>w;w--;m=(m+999)/1000*1000)m+=m*5/100;std::cout<<m;}

C++: #include <cstdio>
int main() {
	int n,debt=100000;
	scanf("%d",&n);
	for(int i=0;i<n;i++) {
		debt*=1.05;
		if(debt%1000)debt-=debt%1000,debt+=1000;
	}
	printf("%d\n",debt);
}