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(int(ans))	// intにしないと指数つき表現になってしまう
}

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 next()string{
	sc.Scan()
	return sc.Text()
}

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

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

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

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

typedef long long int ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pair<int, int> > vii;
#define rrep(i, m, n) for(int (i)=(m); (i)<(n);  (i)++)
#define  rep(i, n)    for(int (i)=0; (i)<(n);  (i)++)
#define  rev(i, n)    for(int (i)=(n)-1; (i)>=0; (i)--)
#define vrep(i, c)    for(__typeof((c).begin())i=(c).begin(); i!=(c).end(); i++)
#define  ALL(v)       (v).begin(), (v).end()
#define mp            make_pair
#define pb            push_back
template<class T1, class T2> inline void minup(T1& m, T2 x){ if(m>x) m=static_cast<T2>(x); }
template<class T1, class T2> inline void maxup(T1& m, T2 x){ if(m<x) m=static_cast<T2>(x); }

#define INF 1000000000
#define MOD 1000000009
#define EPS 1E-9

int n;
double res = 100000;

int main()
{
  cin >> n;

  while(n--){
    res *= 1.05;
    res = 1000 * ceil(res / 1000);
  }

  cout << res << endl;

  return 0;
}

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

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

C++: #include<iostream>
#include<string>
#include<queue>
#include<stack>
using namespace std;
int main(){
	stack<int>st;
	bool bo=false;
	int n,a=10000;
	cin>>n;
	for(int i=0;i<n;i++){
		a+=a*0.05;
	}
	if(a%100==0 && a%10==0 && a%10==0){
		bo=true;
	}
	cout<<a<<endl;
	a/=1000;
	if(bo==true){
	}
	else if(bo==false){
		a=a+1;
	}
	cout<<a*1000<<endl;
	return 0;
}

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

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

long int kane(int k){
	long int shakkin = 100000;
	for(int i=0;i<k;i++){
		shakkin = shakkin*1.05;
	if(shakkin%1000!=0)
		shakkin += 1000-(shakkin%1000);
	}
	return shakkin;
}

int main() {
	int n;
	cin >> n;
	cout << kane(n) << endl;
	return 0;
}

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

int main(){
  
  double n,mon=100000;
  cin>>n;
  for(int i=0;i<n;i++){
    mon=mon*1.05;
    mon=(mon+999)-(int(mon+999)%1000);
  }
  cout<<mon<<endl;   
  return 0;
}

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

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

	cin >> n;

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

	cout << debt <<endl;

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
	int n;cin>>n;
	int debt = 100000;
	for(int i=0;i<n;i++){
		debt = (int)((debt*1.05+900)/1000)*1000;
	}
	cout << debt << endl;
}

C++: #include<iostream>

using namespace std;


main(){

  int n;
  double money=100000;
  int i;

  cin >> n;

  for(i=0;i<n;i++){

    money*=1.05;
    money/=1000;
    money+=0.9;

    money=(int)money;
    money*=1000; 
    
    
    
  }



  cout << (int)money << endl;




  return 0;
}

C++: #include <iostream>

using namespace std;

static const int ROUND = 1000;

int weeks;
double loan = 100000;
int rishi = loan * 0.05;
int temp;

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

C++: #include <iostream>


using namespace std;

int main(){
  int n;
  double money=100000;
  cin >> n;

  for(int i = 0;i<n;i++){
    money+=(money*0.05);
  }
 money= ((int)money/10000)*10000+10000;
  cout << money<<endl;
  return 0;
}

C++: #include <stdio.h>
int main(){
int n,ans=100000;
scanf("%d",&n);
for(int i=0;i<n;i++){
ans*=1.05;
ans-=ans%1000;
}
printf("%d\n",ans);
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#pragma warning(disable:4996)

int main()
{

	int Debt = 100000;
	int Weeks = 0;
	scanf("%d", &Weeks);

	for (int nCnt = 0; nCnt < Weeks; nCnt++)
	{
		Debt += Debt * 0.05f;
		if (Debt % 1000 > 0)
			Debt += 1000 - (Debt % 1000);
	}

	printf("%d\n", Debt);

	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <functional>
#include <sstream>
#include <stdio.h>
using namespace std;

// Debt Hell(0007)
int main()
{
	int n, ans = 100000;
	cin >> n;
	for (int i = 0; i < n; ++i) {
		int r = ans * 0.05;
		double rr = ans * 0.05;

		if (static_cast<double>(r) != rr || r % 1000 != 0)
			r = (r / 1000) * 1000 + 1000;
		ans += r;
	}
	cout << ans << endl;
	return 0;
}

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

int main(){

  int n,tmp;
  double debt = 100;

  cin >> n;
  while(n){
    debt *= 1.05;
    tmp = (int)debt;
    if( debt > tmp ) debt = tmp + 1;
    n--;
  }

  cout << debt*1000 << endl; 
  return 0;
}

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

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

	double debt = 100000;
	while (weeks--) {
		debt = debt + debt * 0.05;
		debt = ceil(debt / 1000) * 1000;
	}
	
	cout << int(debt) << endl;;
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	int s, n, t;
	
	while(cin >> n){
		s = 100000;
		for(int i = 1; i <= n; i++){
			s += (s*0.05);
			t = s % 1000;
			if(t != 0){
				s = s - t + 1000;
			}
		}
		cout << s << endl;
	}
	
	return 0;
}

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

int calcDebt(int debt){
	double tmp = debt * 1.05;
	int result = (int) ceil(tmp);
	if(result % 1000 == 0){
		return result;
	}else{
		return (result / 1000 + 1) * 1000;
	}
}
int main(){
	int result = 100000;
	int n;
	scanf("%d", &n);
	for(int i=0; i<n; i++){
		result = calcDebt(result);
	}
	printf("%d\n", result);
	return 0;
}

C++: #include<iostream>
#include<cstring> 
using namespace std;
int main()
{
    int n,s=10000;
    cin>>n;
    n++;
    while(n--)
    {
    	s+=500;
	}
	cout<<s<<endl;
}

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

int main() {
  unsigned int week;
  cin >> week;
  float debt = 100;  // in unit of 1000.

  for(int i=0; i<week; i++) {
    debt *= 1.05;
    debt = ceil(debt);
  }

  cout << (int)debt*1000 << endl;

  return 0;
}

C++: #include<iostream>
#include <cstdio>
#include<cmath>
#include<vector>
#include<algorithm>
#include<cstring>

using namespace std;

////Nayeem Shahriar Joy,Applied Physics &Electronic Engineering,University of Rajshahi.

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\n",s);

	return 0;
}