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>
#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 * 1.05;
		money = ceil(money/1000) * 1000;
	}
	cout << (int)money << endl;
	
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(void) {
	int n;

	cin >> n;

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

	cout << debt << endl;

	return 0;
}

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

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

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

  return (0);
}

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

using namespace std;

int main(void){
	int debt = 100000;
	float const rate = 0.05;
	int term = 0;
	cin >> term;
	for (int i=0; i<term; ++i){
		float tmp = debt * (1 + rate) / 1000;
		debt = (int)(ceil(tmp) * 1000);
	}
	cout << debt << endl;
	return 0;
}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  int n,ten1=100000,ten2;
  cin>>n;
  rep(i,n){
    ten1+=ten1/20;
  }
  ten2=ten1/1000*1000;
  if(ten1!=ten2)ten2+=1000;
  cout<<ten2<<endl;
}

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

int main(void) {
    int n = 5;
    
    int64_t remain = 100000;
    
    for(int i = 0; i < n; i++) {
        remain *= 1.05;
        if(remain % 1000 > 0)
            remain = (remain - remain % 1000) + 1000;
    }
    
    std::cout << remain << std::endl;
}

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

int main() {
    int n;
    cin>>n;
    ll a=100000;
    while (n--) {
        a=(a*105)/100;
        a=(a+999)/1000*1000;
    }
    cout<<a<<endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

int roundUp(int x, int index);

int main(void)
{
    int i;
    int n;
    double intrst;
    int debt;
    
    cin >> n;
    
    debt = 100000;
    intrst = 0.05;
    for (i = 0; i < n; i++) {
        debt *= 1.0 + intrst;
        debt += 900;
        debt /= 1000;
        debt *= 1000;
    }
    cout << debt << endl;
    
    return 0;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
	int m;
	int s=100000;
	cin>>m;
	for(int i=0;i<m;i++){
       s = s*1.05;
		if(s%1000!=0)
	 s = ((s/1000)+1)*1000;
	}
	cout<<s<<endl;
    return 0;
}

C++: #include<iostream>
using namespace std;
int main() {
	int n,j;
	long long k = 100000;
	cin >> n;
	for (int i = 0; i < n; i++) {
		k += k / 20;
		j = k % 1000;
		if (j != 0) {
			k += 1000 - j;
		}
	}
	cout << k << endl;
	return 0;
}

C++: #include<iostream>
#include<cmath>
#include<cstdio>
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<<i<<','<<m<<endl;
	//printf("%.0lf\n",m);  
}
  cout<<(int)m<<endl;
}

C++: #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
using namespace std;
static const double EPS = 1e-5;
typedef long long ll;
#define FOR(i,n) for(i=0;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
	int n;
	cin>>n;
	double d=100;
	rep(i,n){
		d*=1.05;
		d=(int)(d+0.99999);
	}
	cout<<d<<"000"<<endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main() {
	int n, ans;
	cin >> n;
	ans = 100000;
	for (int i = 1; i <= n; i++) {
		ans = ans * 1.05;
		if (ans % 1000 != 0) {
			ans = ans + 1000-ans%1000;
		}
	}
	cout << ans << endl;
}

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;
	int money = 100000;

	cin >> N;
	rep(i,N) {
		money = (money + money * 0.05);
	}
	string a_str = to_string(money);
	vector<char> strs;

	for (int i = a_str.size()-1; i >= 0; i--) {
		strs.push_back(a_str[i]);
	}
	rep(i,4) {
		strs[i] = '0';
	}
	strs[4] = strs[4] + 1;
	/*
	rep(i,strs.size()) {
		//cout << strs[i];
	}
	*/

	vector<char> strs2;
	for (int i = strs.size()-1; i >= 0; i--) {
		cout << strs[i];
	}
	cout << endl;

	return 0;
}

C++: #include<iostream>
//#include<algorithm>
//#include<cmath>
//#include<string>
//#include<cctype>
//#include <vector>
using namespace std;
int main(){
	int a=100,n;
	cin >> n;
	while (n--) a = a*1.05 + 0.9;
	cout << a * 1000 << endl;
	return 0;
}

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

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

	cin >> week;

	for(i=0;i<week;i++){
		debt=debt*105/100;
		if(debt%1000){
			debt = debt - (debt%1000) + 1000;
		}
	}
	
	cout << debt;
}

C++: #include <stdio.h>
#include <string>
#include <iostream>

using namespace std;


int main(){
    int week;
    cin >> week;
    double money =100;

    for(int i=0; i<week; i++){
        money=money * 1.05;
        money+=0.9;
        money=int(money);
    }
    printf("%d\n",int(money)*1000);
}

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

int main(){
  int debt = 10000, n;
  cin >> n;
  while(n--){
  	debt = debt * 105 / 100;
  }
  int result = debt / 1000;
  if(debt % 1000 > 0)
  	result++;
  result *= 1000;
  cout << result << endl;
}

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

int roundup(int init){
	//roundup 1000
	return (init + 999)/1000*1000;
}

//0007
int main(){
	const int initial = 100000;
	const int ratio_numerator = 105;
	const int ratio_denominator = 100;
	int weeks, term;

	cin >> weeks;

	//term = initial*(ratio**n)
	term = initial;
	for(int i=0; i<weeks; ++i){
		term = term * ratio_numerator / ratio_denominator;
		term = roundup(term);
	}

	cout << term << endl;
	return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include <math.h>
using namespace std;
int main(){
    int n, rent; cin >> n;
    if(n % 2 != 0){
        rent =  floor(n / 2) + 1;
    }else{
        rent = n / 2;
    }
    cout << 100000 + rent * 10000 << endl;
    return 0;
}