Go: package main
import (
	"fmt"
	"os"
	"strconv"
	"bufio"
	"math"
)

var sc = bufio.NewScanner(os.Stdin)

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

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp*=1.05
		// tmp = Ceil(tmp, -4) なぜかうまくいかない
		tmp = Ceil(tmp, -3)
		// fmt.Printf("now tmp: %d\n", int(tmp))
	}
	return tmp
}

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

func next()string{
	sc.Scan()
	return sc.Text()
}

func nextInt()int{
	a, _ := strconv.Atoi(next())
	return a
}

C++: 
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <math.h>
#include <iomanip>
using namespace std;
int main(){
  int n,res;
  double m=100000;
  cin>>n;
  if(!n){cout<<m<<endl;return 0;}
  for(;n;n--)
    m*=1.05;
  cout<<m<<endl;
  m/=10000;
  m+=1;
  res=(int)m*10000;
  cout<<res<<endl;
  return 0;
}

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

int main(){
  int n;
  int debt = 100000;
  
  std::cin >> n;
  for(int i=0; i<n; i++){
    debt = round((double)debt * 1.05);
    int under = debt % 1000;
    if(under==0)
    else{
      debt = debt - under + 1000;
    }
  }
  std::cout << debt << std::endl;
  
  return 0;
}

C++: #include<iostream>
#include<math.h>
#include<stdio.h>
#include<windows.h>
using namespace std;
int main() {
    int n;
    double dbt;
    dbt = 100000;
    cin >> n;
    for (; n > 0; n--) {
        dbt = dbt * 1.05;
        dbt = dbt / 1000;
        dbt = ceil(dbt);
        dbt = dbt * 1000;
    }
    cout << dbt << endl;
    return 0;
}

C++: #include <iostream>

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

	const int first = 100000;
	int interest = first * 0.05;
	int loan;

	for (int i = 0; i < nWeeksLater; i++)
		loan = first + interest * nWeeksLater;

	int a = loan / 1000;
	loan = loan % 1000 >= 500 ? (a + 1) * 1000 : a * 1000;

	std::cout << loan << std::endl;
}

C++: #include <iostream>
using namespace std;
int main(){
	long d = 100000;
	int n;
	cin>>n;
	for(int i=1;i<=n;i++){
		d *= 1.05;
		if(d%1000 > 0){
			d += 1000;
		}

		d /= 1000;
		d *= 1000;
	}
	cout<<d<<endl;
	
	return 0;
}

C++: #include<iostream>
#include<math.h>
using namespace std;
int main() {
    int n;
    double dbt;
    dbt = 100000;
    cin >> n;
    for (; n >= 0; n--) {
        dbt = dbt * 1.05;
        dbt = dbt / 1000;
        dbt = ceil(dbt);
        dbt = dbt * 1000;
    }
    cout << dbt;
    return 0;
}

C++: //↓template↓

#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n)  n.begin(),n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = { 1,0,-1,0 }, dy[] = { 0,1,0,-1 }, alp[30];
long long fac[200005], finv[200005], inv[200005];
vector<long long>dij;
struct edge { long long to, cost; };
vector<vector<edge> >G;

long long mod_pow(long long a, long long b) {
	long long res = 1, mul = a;
	for (int i = 0; i < 31; ++i) {
		if (b >> i & 1) {
			res *= mul;
			res %= MOD;
		}
		mul = (mul * mul) % MOD;
	}

	return res;
}

void addedge(int from, int to, int cost) {
	G[from].push_back({ to,cost });
	G[to].push_back({ from,cost });
}

//↑template↑


int main() {
	int n, ans = 100000;
	cin >> n;
	while (--n) { ans = (ans*ans / 20 + 999) / 1000 * 1000; }
	cout << ans << endl;
}

C++: #include <iostream>

using namespace std;

int main(){

	int n;
	cin >> n;
	int debt = 100000;
	for(int i = 0; i < n; i++){
		debt += debt/20;
		int lower = debt % 1000;
		debt -= lower;
		if(lower != 0)
			debt += 1000;
	}
	cout << debt << endl;
	return 0;
}

C++: #include<iostream>

using namespace std;

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

  int debt = 100;
  
  for ( int i = 0; i < n; i++ )
    {
      debt *= 1050;
      
      if ( debt % 1000 != 0 )
        debt = debt / 1000 + 1;
      else
        debt /= 1000;
    }
  cout << debt * 1000 << endl;
  
  return 0;
}

C++: #include<cstdio>
using namespace std;
int main(void)
{
	int n,risi,gou,i,x;
	scanf("%d",&n);
	x=100000;
	for(i=0;i<n;i++){
		x=x*1.05;
		if(x%1000!=0){
			x=x+1000-(x%1000);
		}
	}
	printf("%d\n",x);
	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 + (money * 0.05);
		if (money % 1000 != 0) {
			money += 1000;
		}
	}
	cout << money << endl;
	return 0;
}

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

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 <math.h>
#include <iostream>
#include <ios>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <string>

#define YES "YES"
#define NO "NO"
#define space ' '

using namespace std;

void func();

int main(void)
{
	
	func();

	return 0;
}


void func()
{
	int n, debt;

	debt = 100000;

	cin >> n;
	while (n-- > 0)
	{
		debt = debt + debt*0.05;
		if (debt % 1000 > 0)
			debt += 1000 - debt % 1000;

		cout << debt << endl;
	}
}

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

using namespace std;

int n;
long debt = 100000;

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

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

int main(){
	int n, t = 100000;
	cin >> n;
	for( int i = 0; i < n; ++i){
		t = 1.05 * t;
		t = (t/1000)*1000 + ((t % 1000 != 0) ? 1000 : 0);
	}
	cout << t << "\n";
	return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <sstream>
#include <stdio.h>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <math.h>
#include <utility>
#include <string>
#include <ctype.h>
#include <cstring>
#include <cstdio>
#include <sstream>
using namespace std;

#define FOR(i,k,n) for(int i = (k); i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define INF 114514810
#define ll long long


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

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

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

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

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

	printf("%ld\n",money);
	
	return 0;
}

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

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