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

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

int main(void){
    int i,n;
    double ans;
    cin >> n;
    ans=100.000;
    for(i=0;i<n;i++){
        ans*=1.05;
        cout << i+1 << ":::" << ans << "->";
        ans=(int)(ans+0.999);
        cout << ans << "->";
        ans=(double)ans;
        cout << ans << endl;
    }
    ans*=1000;
    printf("%d\n",(int)ans);
    return 0;
}

C++: #include<cstdio>

int main(){
	int n,k=100000;
	scanf("%d",&n);
	for(;n>=0;n--){
		k*=1.05;
		if(k%10000){
			k+=10000;
		}
		k=k-k%10000;
	}
	printf("%d",k);
	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 <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 <iostream>
using namespace std;

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

C++: #include<cstdio>

int main() {
	int n;
	double debt=100000;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		debt = debt + debt*0.05;
		if ((int)debt % 1000 > 0) {
			debt = debt - (int)debt % 1000;
			debt += 1000;
		}
	}
	printf("%d\n", (int)debt);

	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <cstring>
#include <climits>
#include <cmath>
#include <cfloat>

#define FOR(i,b,n) for(int i=b;i<n;i++)
#define CLR(mat) memset(mat, 0, sizeof(mat))
#define INF 1<<25

using namespace std;

int n;
int dept = 100000;

int main()
{
	while( cin >> n, !cin.eof())
	{
		
		FOR(i, 0, n)
		{
			dept += dept*0.05;
			
			if(dept%1000 != 0)
				dept += 1000 - dept%1000;
		}
		
		cout << (int)(dept) << endl;
		
	}

	return 0;
}

C++: #include<cstdio>

int main(){
	int n;
	int a = 100;
	scanf("%d", &n);
	for(int i = 0; i < n; i++){
		if(a % 20){
			a = a * 1.05 + 1;
		}else{
			a *= 1.05;
		}
	}
	printf("%d000\n", a);
	return 0;
}

C++: #include <iostream>
using namespace std;
//1000未満切り上げ
int main(){
  int weeks;
  int debt = 100000;
  cin >> weeks;
  for(int i=0;i<weeks;i++){
    debt *= 1.05;
    if(debt%1000)
      debt += (1000 - debt%1000);
  }
  cout << debt <<endl;
}

C++: #include <iostream>

using namespace std;

int main()
{
	int n, k = 100000;

	cin >> n;

	for (int i = 1; i <= n; i++)
	{
		k = static_cast<int>(k * 1.05 + 999) / 1000 * 1000;
	}

	cout << k << endl;

	return 0;
}