Go: package main

import "fmt"

func roundUp100(dept float64) float64 {
	iDept := int(dept)
	if iDept-(iDept/1000*1000) != 0 {
		iDept = ((iDept / 1000) + 1) * 1000
	}
	return float64(iDept)
}

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

	dept := 100000.0
	for i := 0; i < week; i++ {

		dept *= 1.05
		dept = roundUp100(dept)
	}

	fmt.Println(dept)
}

//問題文が理解できていない感

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

C++: #include <iostream>
using namespace std;
int main(){
	int a=100000,n;
	cin>>n;
	for(int i=0;i<n;i++){
		if((a*21/20)%1000==0)a=a*21/20;
		else a=((a*21/20)/1000)*1000+1000;
	}
	cout<<a<<endl;
	return 0;
	}

C++: #include<cstdio>
int main(){
    int n;
    scanf("%d",&n);
    int a=100000;

    for(int i=0;i<n;i++)
    {
        a*=1.05;
        if(a%1000!=0){
            a=(a/1000)*1000;
            a+=1000;
        }
    }
    printf("%d",a);
}

C++: #include <list>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <utility>
#include <functional>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
using namespace std;
inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v;}
template<class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str();}
typedef vector<int> vi;
typedef vector<vi>  vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef long long ll;
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(),(a).rend()
#define EACH(t,i,c) for(t::iretator i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define FOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n) FOR(i,0,n-1)
const double EPS = 1e-12;
const double PI = acos(-1.0);

int main() {
	int n;
	cin >> n;

	int ans = 100000;
	REP(i, n) {
		ans += ceil(ans*0.05/1000)*1000;
	}
	cout << ans << 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)(1000*ans) << endl;

	return 0;
}

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

int main(){
	int n;
	int m = 100000;
	cin >> n;

	for(int i = 0; i < n; ++i){
		m = (m*1.05+999)/1000;
		m = m*1000;
	}
	cout << m << '\n';
	return 0;
}

C++: #include <iostream>
 
using namespace std;
 
void solve()
{
    int N;
    cin >> N;
    int sum = 100000;
    for(int i = 0; i < N; ++i)
    {
        sum *= 1.05;
        if(sum % 1000 != 0)
        {
            sum += 1000 - (sum % 1000);
        }
    }
    cout << sum << endl;
}
 
int main()
{
    solve();
    return(0);
}

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;
    if((int)base %1000 !=0) {
      int tmp = (int)base / 1000;
      base = tmp*1000 + 1000;
    }
 
  }
  printf("%d\n",(int)base);
}

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

#define N 100000;

int main()
{
	int n;
	int a;
	a = N;
	cin >> n;
	for (int i = 0; i < n; ++i)
	{
		a *= 1.05;
	}
	if(a % 10000 > 0){
		cout << a / 10000 * 10000 + 10000 << endl;
	}else{
		cout << a / 10000 * 10000 << endl;
	}
}

C++: #include <iostream>

int main()
{
  int n;
  std::cin >> n;

  int debt = 100000;
  for (int i = 0; i < n; ++i) {
  	debt = int(double(debt) * 1.05);
    if (debt % 1000 != 0) {
    	debt = ((debt / 1000) + 1) * 1000;
    }
  }

  std::cout << debt << std::endl;

  return 0;
}

C++: #include<stdio.h>

int main(){
	double num=100000;
	int i,n,sum=0;
	
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		num=(double)num*1.05;
	}
	num=(double)num/10000;
	sum=num+0.9999;
	sum=sum*10000;
	
	printf("%d\n",sum);
	return 0;
}

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

int main(){
	int n;
	cin >> n;
	int cur = 100000;
	while(n--){
		cur = cur + cur * 0.05;
		if(cur%1000 != 0){
			cur += 1000-(cur%1000);
		}
	}
	cout << cur << endl;
}

C++: #include <iostream>
const int first = 100000;

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

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

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

C++: #include <stdio.h>

int main(int argc, char *argv[]){
    
    int debt=100000;
    int n, m=0;
    
    scanf("%d", &n);
    
    for(int i=0; i<n; i++){
        debt += debt*0.05;
        m = debt % 1000;
        if(m != 0){
            debt -= m;
            debt += 1000;
        }
    }
    
    printf("%d\n", debt);
    
    return 0;
}