Go: package main

import (
	"bufio"
	"os"
	"strconv"
	"math"
	"fmt"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextInt() int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func calc(n int) float64 {
	tmp := 100000.0
	for i := 0; i < n; i++ {
		tmp *= 1.05
		tmp = ceil(tmp, -3)
	}
	return tmp
}

func ceil(f float64, places int) float64 {
	shift := math.Pow(10, float64(places))
	return math.Ceil(f*shift)/shift
}

func main() {
	scanner.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(ans)
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <string>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <functional>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long > vll;
typedef vector< vi > vvi;
int main() {
	int n,m=100000;
	cin>>n;
	for(int i=0;i<n;i++){
			m +=m/20;
		if(m%1000!=0){
			m=m-m%1000+1000;
		}
	}
	cout<<m<<endl;
}

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

int main() {
	int weeks, debt = 100000;

	cin >> weeks;
	for (int i = 0;i < weeks;i++) {
		debt *= 1.05;
		if (debt % 1000 != 0) debt = 1000 * (debt / 1000 + 1);
	}
	cout << debt << endl;
	return 0;
}

C++: #include<stdio.h>

int main(){
	int  s=100000;

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


	for(;n--;){
		if(int(s*1.05)%1000==0){
			s=int(s*1.05);
		}else{
			s= int(s*1.05) + (1000- int(s*1.05) % 1000);
		}
	}
	printf("%d",s);

	return 0;
}

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

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

C++: #include<cstdio>

int main() {
    int i, temp;
    int nah = 100000;
    scanf("%d", &i);
    for (; i > 0; i-- ) {
        nah+= nah*5/100;
        temp = nah % 1000;
        if ( temp != 0 ) {
             nah = nah - temp + 1000;
        }
    }
    printf("%d\n", nah);
    return 0;
}

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

int main() {
	int week;
	cin >> week;
	int debt = 100;
	for (int i = 0; i < week; i++)
	{
		debt = ((debt * 105) / 100) + ((debt % 20) > 0 ? 1 : 0);
	}
	cout << debt * 1000 << endl;

	return 0;
}

C++: #include<stdio.h>

int main()
{
	int n;
	scanf("%d", &n);
	int i;
	long long int total = 100000;
	for (i = 0; i < n; i++)
	{
		total = total*1.05;
		total = total / 100.0;
		if (total % 10 != 0)total = total + (10 - (total % 10));
		total = total * 100;
	}
	printf("%d\n", total);
	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 += m*0.05;
  m += 999;
  m /= 1000;
  m *= 1000;
 }

 cout << m << '\n';
}

C++: // clang-format off
#include <bits/stdc++.h>
#define int long long
#define main signed main()
// #define main int main()
#define loop(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) loop(i, 0, n)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define prec(n) fixed << setprecision(n)
#define stlice(from, to) substr(from, (to) - (from) + 1)
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
using namespace std;
using pii = pair<int, int>;
using vi = vector<int>;
using vd = vector<double>;
using vc = vector<char>;
using vb = vector<bool>;
using vs = vector<string>;
using vpii = vector<pii>;
using vvi = vector<vi>;
using vvb = vector<vb>;
using vvpii = vector<vpii>;
template<typename A> using fn = function<A>;
constexpr int INF = sizeof(int) == sizeof(long long) ? 1000000000000000000LL : 1000000000;
constexpr int MOD = 1000000007;
constexpr double PI = acos(-1);
template<typename A, typename B> bool cmin(A &a, const B &b) { return a > b ? (a = b, true) : false; }
template<typename A, typename B> bool cmax(A &a, const B &b) { return a < b ? (a = b, true) : false; }
constexpr bool odd(const int &n) { return n & 1; }
constexpr bool even(const int &n) { return !odd(n); }
template<typename V> constexpr typename V::value_type sum(const V &v) { return accumulate(all(v), 0); }
void solve();
main { solve(); return 0; }
// clang-format on

void solve() {
  int n;
  cin >> n;
  int x = 100000;
  rep(i, n) x = x * 21 / 20;
  cout << (x + 9999) / 10000 * 10000 << endl;
}

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

int main(){
    int week = 0;
    cin >> week;
    int a = 100000;
    for(int i = week;i--;){
        a *= 1.05;
    }
    a = (int)(a * 0.0001 + 0.9) * 10000;
    cout << a << endl;
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int n;cin>>n;int C=100;
	for(int i=0;i<n;i++){
		long double E=C;E*=1.05l;
		E+=0.999;C=(int)E;
	}
	cout<<C*1000<<endl;
}

C++: #include <iostream>

using namespace std;

static const int ROUND = 10000;

int weeks;
double loan = 100000;
int temp;

int main(){
  scanf("%d", &weeks);
  while (weeks != 0){
      loan = loan *1.05;
      temp = loan/ROUND;
      loan = (temp+1) * ROUND;
      weeks--;
  }
 cout << loan << endl;
 return 0;   
}

C++: #define _USE_MATH_DEFINES

#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <utility>
#include <vector>
#include <numeric>

using namespace std;

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

	int m = 100000;
	for (int i = 0; i < n; i++)
	{
		m = m * (1 + 0.05);
		m = (m / 1000 + (m % 1000 == 0 ? 0 : 1)) * 1000;
	}

	cout << m << endl;
}

C++: #include <iostream>
using namespace std;
int StartDebt = 100000;

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

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

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

    cin >> n;                  

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

    cout << debt;

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

	cin >> N;
	rep(i,N) {
		money = (money + money * 0.05);
	}
	float m = money / 10000;
	cout << (int)ceil(m) * 10000 << endl;
	
	return 0;
}

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

int main() {
    int n, a = 100000;
    cin >> n;
    for (int i = 0; i < n; i++) {
        a = static_cast<int>(ceil(a * 0.00105)) * 1000;
    }
    cout << a << endl;
    return 0;
}

C++: /*****include*****/
#include <iostream>
#include <fstream>

/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/

/*****名前空間*****/
using namespace std;

/*****グローバル変数置き場*****/

/*****その他関数置き場*****/

/*****main関数*****/
int main(){
	/*****ファイルオープン*****/
#ifdef DEBUG
	ofstream fout("output.txt");
	ifstream fin("input.txt");
	if(!fout || !fin){
		cout << "Can't open the file.\n";
		return;
	}
#endif
	/*****変数置き場*****/
	int year;
	long int money = 100000;
	/*****処理部*****/
	cin >> year;
	for(int i=1;i<=year;i++){
		money += money*0.05;
		if(money % 1000 > 0){
			money /= 1000;
			money++;
			money *= 1000;
		}
	}
	cout << money << endl;
	/*****処理終了後*****/
#ifdef DEBUG
	fout.close();
	fin.close();
#endif
	return 0;
}