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++: #define _USE_MATH_DEFINES
#include <iostream> 
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std; 
int main(){
	int n, r;
	int d = 100000;
	cin >> n;
	for(int i = 0; i < n; i++){
		r = d*1.05;
		if(r%1000!=0){
			while(r%1000!=0){
			r = r+1;
			}
		}
		d = r;
	}
	cout << d << endl;
	return 0;
}

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

int round(double num);

int main(){
	int n=100;
	int w;
	cin >> w;

	for(int i=0; i<w; i++){
		n = round(n*1.05);
	}

	cout << n*1000 << endl;

	return 0;
}

int round(double n){
	int m=n;

	if(n>m) return m+1;
	if(n==m) return m;
}

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

double money(double x, int target, int depth = 0) {
  if (x - (double)((int)x / 1000) * 1000 > 0) {
    x = (double)((((int)x / 1000) + 1) * 1000);
  }
  if (target == depth) { return x; }
  return money(x * 1.05, target, depth + 1);
}

int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int n, x;
  cin >> n;

  cout << money(100000.0, n) << endl;

  return 0;
}

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

int main(){
    int m;
    cin >> m;
    int n = 100000;
    for(int i=0;i<m;i++){
        n = n * 1.05;
        if(n%1000>0) n=n/1000*1000+1000;
    }
    cout << n << endl;
    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 *= 1.05;
  m += 999;
  m /= 1000;
  m *= 1000;
 }

 cout << m << '\n';

 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;
        if(ans%1000){
            ans+=1000;
            ans-=ans%1000;
        }
    }
    printf("%d\n",ans);
}

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;
}
printf("%d\n",(int)base);
}

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<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;
int res = 100000;

int main()
{
  cin >> n;

  while(n--){
    res *= 1.05;
    if(res % 1000){
      res += 1000;
      res -= res % 1000;
    }
  }

  cout << res << endl;

  return 0;
}

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

int main() {
  int n;
  cin >> n;
  int ans = 100000;
  for (int i=0;i<n;i++) {
    int a = 0.05*ans;
    if (a%1000)
      a = (a / 1000 +1) * 1000;
    ans += a;
  }
  cout << ans << endl;
}

C++: #include<iostream>
int main(){int w,m=100000;for(std::cin>>w;w--;m=(m+999)/1000*1000)m+=m*5/100;std::cout<<m;}

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

C++: #include <stdio.h>
#include <string.h>

int main()
{
	int n;
	scanf("%d",&n);
	int now = 100000;
	for(int i = 0; i < n; i++)
	{
		now = now * 105 / 100;
		if(now % 1000 != 0)
		{
			now = (now / 1000 + 1) * 1000;
		}
	}
	printf("%d\n",now);
	return 0;
}

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

using namespace std;

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

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

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

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

using namespace std;

int main()
{
	int n, ans;
	double debt = 100000;

	cin >> n;

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

	ans = debt;

	cout << ans << endl;

	return 0;
}

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

using namespace std;

#define rep(i, n) for (int i = 0; i < int(n); ++i)

int main() {
  long long n, m = 100000;
  cin >> n;
  rep (iii, n) {
    m = ceil((double)m * 1.05 / 1000) * 1000;
  }
  cout << m << endl;
  return 0;
}

C++: #include<iostream>

using namespace std;

double money = 100000;

int i;

int main()
{
	cin>>i;
	for(i;i>0;--i)
	{
		money *= 1.05;
		money = (long)(money/100+0.99)*100;
	}
	printf("%.0lf\n",money);
}

C++: using System;

class main
{
    static void Main(String[] args)
    {
        double n = double.Parse(Console.ReadLine());
        double b = 100000;
        for (int i = 0; i < n; i++)
        {
            b = b * 1.05;
            b = (Math.Ceiling(b / 1000))*1000;
        }
        Console.WriteLine(b);
        //Console.ReadKey();
    }
}

C++: #include <iostream>

int main(){

	int n,i,kane=100000,a,b;

	std::cin>>n;

	for(i=0;i<n;i++){
		kane=kane*1.05;
		if(kane%1000!=0){
			a=kane%1000;
			b=1000-a;
			kane=kane+b;
			}
		}
	
	std::cout<<kane;

		return 0;
		}

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

using namespace std;

int main()
{
    int n;
    double debt = 100.0;

    cin >> n;
    
    for (int i = 0; i < n; ++i) {
        debt = ceil(debt * 1.05);
    }
    cout << static_cast<int>(debt * 1000) << endl;

    return 0;
}

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

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

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

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

int main() {
	char str[100];
	cin >> str;
	for(int i=strlen(str)-1;i>=0;i--){
		cout << str[i];
	}
	cout << endl;
	return 0;
}

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

int main(){
	int n;
	cin >> n;
	double ans = 100000;
	for(int i=0; i < n; i++){
		ans *= (1 + 0.05);
	}
	ans = ans / 10000;
	ans = ceil(ans);
	ans = ans * 10000;
	cout << ans << endl;
	return 0;
}

C++: #include<stdio.h>
int main()
{
int n,x;

double r,y;
x=100000;
r=1.05;
scanf("%d",&n);
for(int i=0;i<n;i++){
x=r*x;
if(x%1000>0)x=x+1000-(x%1000);
}
printf("%d\n",x);
return 0;
}