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++: #include <iostream>

using namespace std;

int main() {

	double money = 100000;
	int n;

	cin >> n;

	for (int i = 1; i <= n; i++) {
		//???????????????
		money *= 1.05;
		//1000??????????????°?????????
		double miman = money - ((int)(money*0.001)) * 1000.0;
		if (miman > 0) {
			money = money - miman + 1000.0;
		}
	}

	cout << money << endl;

	return 0;

}

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

int main()
{
    int n;
    double debt;
    while(std::cin >> n)
    {
        debt = 100000;
        for(int i = 0; i < n; ++i)
        {
            debt += debt / 20;
            debt /= 1000;
            debt = std::ceil(debt);
            debt *= 1000;
        }
        std::cout << debt << std::endl;
    }
    return 0;
}

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

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

C++: #include<iostream>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<numeric>
#include<climits>
#include<ctime>
#include<cstring>
#define REP(i,p,n) for(int i=p;i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))
#define all(c) (c).begin(), (c).end()

using namespace std;
template<class T> inline void chmax(T& a, T b) { if(b > a) a = b; }
template<class T> inline void chmin(T& a, T b) { if(b < a) a = b; }

int main() {
	int N;
	double money = 100000;

	cin >> N;
	rep(i,N) {
		money = (money + money * 0.05);
		money = (int) ceil(money/1000) * 1000;
	}
	cout << money << 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++){
    money += (int)(money * 0.05);
    int cp = money;
    while(cp - 1000 >= 0){
      cp -= 1000;
    }
    money -= cp;
    if(cp != 0){
      money+=1000;
    }
  }
  cout << money << endl;;
}

C++: 

#include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

using namespace std;
int main()
{
	int a = 100000;
	int s;
	cin >> s;
	for (int i = 0; i < s; i++)
	{
		a *= 1.05;
		if (a % 1000 == 0) {
			a = a - (a % 1000);
		}
		else { a = a - (a % 1000) + 1000; }
	}
	cout << a << endl;
	return 0;
}

C++: #include <iostream>
#include <string>
#include <stack>
#include <math.h>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <vector>

using namespace std;






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


}

C++: 
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <map>
#define pi 3.14159265358979323846264338
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 -= money % 1000;
			money += 1000;
		}
	}
	cout << money << endl;
	return 0;
}

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

const float a=1.05;
float bulat=1000;

using namespace std;



int main(void)
{
	int debt,week;
	scanf("%d",&week);
	debt=100000;
	for(int loop=1;loop<=week;loop++)
	{
		debt*=a;
		if(debt%100!=0)
		{
			debt=debt-(debt%1000)+1000;
		}
	}
	printf("%d",debt);
	return 0; 
}

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

int main(void)
{
  int debt = 100000;

  int n;
  scanf("%d", &n);

  int i;
  for(i=0; i<n; ++i){
    debt *= 1.05;
    debt = ceil(debt/1000.0)*1000;
  }

  printf("%d\n", debt);

  return 0;
}

C++: #include <iostream>

auto main () -> int
{
    auto z = 100000;
    int n;
    std::cin >> n;
    for (auto i = 0; i < n; ++ i)
    {
        auto d = z / 100 * 5; // 5%
        if (d % 1000)
        {
            d += 1000 - d % 1000;
        }
        z += d;
    }
    std::cout << z << std::endl;
}

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

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

C++: #include <iostream>
#include <cmath>
#include <cstdio>
#define DEFAULT 100000
using namespace std;

int main(void) {
    double tax = 0.05 * DEFAULT;
    double start = DEFAULT;
    int num;
    cin >> num;
    for(int r = 0; r <= num; r++) {
        start += tax;
    }
    
    //cout << start << endl;
    start /= 10000;
    //cout << start << endl;
    start = ceil(start);
    start *= 10000;
    
    cout << (int)start << endl;
    
    return(0);
}

C++: #include <iostream>

using namespace std;

int main()
{
    int n,ans=100000;
    cin>>n;
    for (int i=0; i<n; i++)
    {
        ans*=1.05;
        if (ans%1000!=0) ans=((ans/1000)+1)*1000;
    }
    cout<<ans<<'\n';
    return 0;
}

C++: #include <iostream>

using namespace std;

int calcDebtByWeek(int);

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

	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<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 <stdio.h>
int main(){
  int n;
  double debt=100000.0;
  scanf("%d",&n);
  while(n--){
    debt += debt*0.05;
    if(debt%1000!=0){
      debt -= debt%1000;
      debt += 1000;
    }
  }
  printf("%lf\n",debt);
  return 0;
}

C++: #include <iostream>
using namespace std;
int main( void )
{
	int m = 100000;
	int n;
	cin >> n;

	for ( int i = 0; i < n; i++ )
	{
		m = (int)((double)m * 1.05);
		if ( m % 1000 > 0 )
		{
			m += 1000;
		}
		m /= 1000;
		m *= 1000;
	}

	cout << m << endl;

	return 0;
}

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

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

C++: #include <stdio.h>

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

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

	return 0;
}

C++: #include <iostream>


using namespace std;

int main(void)
{
    int n;
    cin >> n;
    int debt = 100000;
    for(int i=0;i<n;i++){
        double tmp = (double)debt * 1.05;
        debt = (int)tmp;
        int xsen = debt / 1000;
        if( debt % 1000 != 0){
            debt = 1000 * (xsen+1);
        }
    }
    cout << debt << endl;
    return 0;
}

C++: #include <iostream>
const int first = 100000;
int round_up(int price) // 1000円未満を切り上げ
{
    if (price <= 1000) {
        return price;
    }
    int complement  = 1000 - price%1000; // 補数
    return (price + complement);
}
int get_dept(int n) // n週間後
{
    int dept = first;
    for (int i=0; i<n; i++) {
        dept += dept/20;
        dept = round_up(dept);
    }
    return dept;
}
int main()
{
    int n;
    std::cin  >> n;
    std::cout << (get_dept(n)) << std::endl;
}