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+=tmp*0.05
	}
	return Round(tmp, -4)
}

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

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

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

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

using ll = long long;
using lli = ll int;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


int main()
{
  int n, sum=100000;
  int i, j, k;
  int sum, tot, ans, num;
  
  cin >> n;
  for(i=0; i<n; i++){
    sum += sum*(i+1)*0.05;
    sum = (sum/1000+1)*1000;
  }
  cout << sum << endl
    return 0;
}

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

#define pb(n) push_back(n)
#define fi first
#define se second
#define X real()
#define Y imag()
#define all(r) (r).begin(),(r).end()
#define gsort(st,en) sort((st),(en),greater<int>())
#define vmax(ary) *max_element(all(ary))
#define vmin(ary) *min_element(all(ary))
#define debug(x) cout<<#x<<": "<<x<<endl
#define fcout(n) cout<<fixed<<setprecision((n))
#define scout(n) cout<<setw(n)
#define vary(type,name,size,init) vector< type> name(size,init)

#define rep(i,n) for(int i = 0; i < (int)(n);++i)
#define REP(i,a,b) for(int i = (a);i < (int)(b);++i)
#define repi(it,array) for(auto it = array.begin(),end = array.end(); it != end;++it)
#define repa(n,array) for(auto &n :(array))

using ll = long long;
using vi = vector<int>;
using vl = vector<ll>;
using dict = map<string,int>;
using comd = complex<double>;
using pii = pair<int,int> ;

constexpr int imax = ((1<<30)-1)*2+1 ;
constexpr int inf = 100000000;
constexpr double PI = acos(-1.0) ;
double eps = 1e-10 ;
const int dy[] = {-1,0,1,0};
const int dx[] = {0,-1,0,1};

inline bool value(int x,int y,int w,int h){
  return (x >= 0 && x < w && y >= 0 && y < h);
}

double CalcDist(comd p1, comd p2){
  return sqrt(pow(p1.X - p2.X,2.0) + pow(p1.Y -p2.Y,2.0));
}

template <typename T>
void out(deque < T > d)
{
  for(size_t i = 0; i < d.size(); i++)
  {
    debug(d[i]);
  }
}

template<typename T>
T ston(string& str, T n){
  istringstream sin(str) ;
  T num ;
  sin >> num ;
  return num ;
}

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int ans = 100000;
  rep(i,n){
    ans += ans*0.05;
    if(ans % 1000 > 0)
    ans += 1000 - ans%1000;
  }
  cout << ans << endl;
  return 0;
}

C++: #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <vector>
using namespace std;

const double interest = 0.05;

int weeklyAdd(int debt) {
  debt = debt * (1 + interest);
  if (debt % 1000 != 0)
    debt = (debt / 1000 + 1) * 1000;
  // std::cout << debt << '\n';
  return debt;
}

int main(int argc, char const *argv[]) {
  // int week = 5;
  int week;
  std::cin >> week;
  int debt = 100000;

  for (size_t i = 0; i < week; i++) {
    debt = weeklyAdd(debt);
  }
  std::cout << debt << '\n';

  return 0;
}

C++: #include<iostream>
using namespace std;
#define N 100000
int main(){
	int n,a;
	a=N;
	cin >> n;
	while(n--){
		a+=a/20;
		if(a%1000)a=a-a%1000+1000;
	}
	cout << a <<endl;
	return 0;
}

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

unsigned debt(int n) {
	if(n == 0) return 100;
	else if(n == 1) return 105;
	else return (debt(n - 1) * 1.05 + 1);
}

int main(void)
{
	int n;
	unsigned long d;
	cin >> n;
	d = debt(n) * 1000;
	cout << d << 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);
	return 0;
}

C++: #include<iostream>

using namespace std;

main(){

  int n;
  double rm=100000;//remaining_money
  int i;
  cin >> n ;
  for(i=0;i<n;i++){
    
    rm *= 1.05;
    //kiriage
    rm /= 1000;
    rm += 0.9;
    rm =(int)rm;
    rm *= 1000;
  }

  cout << (int)rm << endl;
  

  return 0;

}

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

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

C++: //0007
#include <bits/stdc++.h>
using namespace std;
int money = 100000;
void up() {
    int judge = money % 10000;
    //cout << money % 10000 << endl;
    if(judge >= 1000) {
        money -= judge; money += 10000;
    }
}

int main(void) {
    int n; cin >> n;
    for(int r = 0; r < n; r++) {
        money *= 1.05;
        //up();
    }
    up();
    cout << money << endl;
    return(0);
}

C++: #include <bits/stdc++.h>
#include <vector>
using namespace std;
int n, utang, bunga;
int main(){
	utang = 100000;
	cin >> n;
	for(int i = 1; i <= n; i++){
		bunga = utang * 5 / 100;
		if(bunga % 1000 == 0)
			bunga = bunga/1000 * 1000;
		else
			bunga = bunga/1000 * 1000 + 1000;
		
		cout << bunga << "\n";
		utang = utang + bunga;
	}
	cout << utang << "\n";
	return 0;
}

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

int main() {
	int n;
	cin >> n;
	long s = 100000;
	for (int i = 0; i<n; i++) {
		s = s * 1.05;
		int s1 = s % 1000;
		if (s1 != 0) {
			s = s - s1 + 1000;
		}
	}
	cout << s << "\n";
	return 0;
}

C++: 
/* vo00_07.cpp */
#include <iostream>
using namespace std;

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

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

	cout << (int)debt << '\n';

	return 0;
}

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

int main(){
	int n,i,out;
	double price = 100000;
	cin >> n;
	for(i=0;i<n;i++){
		price += price * 0.05;
	}
	out = (int)price/1000;
	out *= 1000;
	cout << out;
	return 0;
}

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

using namespace std;

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 argc, char *argv[]) {
	int result = 100000;
	int n;
	scanf("%d", &n);
	for(int i=0; i<n; i++){
		result = calcDebt(result);
	}
	printf("%d", result);
}

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

using namespace std;

int main(int argc, char const* argv[])
{
	int n{};
	int lent{100000};
	std::cin >> n;
	for (int i = 0; i < n; i++) {
		lent += lent * 0.05;
		if (lent % 1000) {
			lent = (lent / 1000) * 1000;
			lent += 1000;
		}
	}
	cout << lent << std::endl;
	return 0;
}

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

int main() {
    int n;
    cin >> n;
    cout << 100000 + 5000 * (n+1) << endl;
    return 0;
}

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;
	}
	d /= 10000;
	d += 1;
	d *= 10000;
	cout<<d<<endl;

	return 0;
}

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

int main()
{
 int m = 100000;
 int w;

 cin >> w;

 for(int i=0; i<w; i++){
  m *= 1.05;
  m += 999;
  m /= 1000;
  m *= 1000;
 }

 cout << m << '\n';

 return 0;
}

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

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