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
	}
	tmp = Ceil(tmp, -4)
	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 n,a=100000;

  cin >> n;

  for(int i=0;i<n;i++){
    a=a*1.05;

    if(a%1000!=0){
      a=a/1000;
      a++;
      a=a*1000;
    }

  }

  cout << a << endl;

}

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

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

C++: #include<functional>
#include<algorithm>
#include<iostream>
#include<utility>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<deque>
#include<map>
#define rep(i,n) for(int i=0;i<n;i++)
#define loop(i,x,n) for(int i=x;i<n;i++)
#define all(v) (v).begin(),(v).end()
#define pf push_front
#define pb push_back
#define int long long
using namespace std;
const int INF=1000000007;
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};

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

C++: #include <iostream>

int debt = 100000;

int main(void)
{
    int n;
    std::cin >> n;

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

    std::cout << debt << std::endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

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

	for (int i = 0; i < n; i++) {
		money *= 1.05;
		if (money % 1000 == 0) {
			continue;
		}
		money += 1000 - money % 1000;
	}

	cout << money << endl;

	return 0;
}

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

int main(){
    int debt = 100000;
    int week;
    
    cin >> week;
    
    for(int i = 0; i < week; ++i){
        debt = debt * 1.05;
    }

    if(debt % 10000 != 0){
        debt = (debt + 9999) / 10000;
        debt = debt * 10000;
        cout << debt;
    }else{
        cout << debt;
    }

    return 0;
}

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

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

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

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

int main() {
	int loan = 100000;
	int hoge = loan * 0.05;
	int n;
	std::cin >> n;

	for (int i = 0; i < n; i++)
		loan += hoge;
	
	if (loan % 1000 < 500)
		loan = loan / 1000 * 1000;
	else
		loan = loan / 1000 * 1000 + 1000;
	
	std::cout << loan << std::endl;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
	int m;
	int s=100000;
	cin>>m;
	for(int i=0;i<m;i++){
      s+=s*0.05;
	  if(s%1000!=0)
		  s-=s-s/1000*1000;
	  s+=1000;
	}
	cout<<s-1000<<endl;
    return 0;
}

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

#define f first
#define s second
#define mp make_pair

#define REP(i,n) for(int i=0; i<(int)(n); i++)
#define FOR(i,c) for(__typeof((c).begin()) i=(c).begin(); i!=(c).end(); i++)
#define ALL(c) (c).begin(), (c).end()
#define EPS (1e-10)
using namespace std;

typedef unsigned int uint;
typedef long long ll;

int r(int s,int n){
  if(n == 0) return s;
  double tmp = s * 1.05;
  s = ((int)tmp+999)/1000*1000;
  return r(s,n-1);
}

int main(){
  int n; cin>>n;
  cout << r(100000,n) << endl;
  
  return 0;
}

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

int main()
{
	int n;
	int cash = 100000;
	const double rate = 1.05;

	cin >> n;

	for( int i = 0; i < n; ++i ){
		cash = ( int )( cash * rate );
		if( cash % 1000 ){
			cash = ( cash / 1000 + 1 ) * 1000;
		}
	}

	cout << cash << endl;

	return 0;
}

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

int main() {
	int week;
	cin >> week;
	int debt = 100000;
	while (week--)
	{
		debt = debt * 1.05;
		int rem = debt % 1000;
		if (rem > 0) {
			debt += (1000 - rem);
		}

	}
	cout << debt << endl;

	return 0;
}

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

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

int main(){
	int shakkinn=100000;
	int n;
	int i;

	scanf("%d", &n);

	for (i = 0; i < n; i++) {
		shakkinn *= 1.05;
		while (shakkinn % 1000 != 0) {
			shakkinn++;

	}
}
	printf("%d\n", shakkinn);
	return 0;
}

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

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

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

  cout << debt << endl;
}

C++: #include<iostream>
using namespace std;
int main(void)
{
    int n,m;
    m=100000;
    cin>>n;
    for(int i=0;i<n;i++)
    {
        m=m*21;
        if(m%20==0)m=m/20;
        else
        {
            m=m/20000;
            m=1000*(m+1);
        }
    }
    cout<<m<<endl;
    return 0;
}

C++: #include<bits/stdc++.h>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<algorithm>
using namespace std;


int main(){
    int n,debt=100000;
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        debt=static_cast<int>(debt*1.05);
        if(debt%1000!=0){
            debt=(debt/1000)*1000;
            debt+=1000;
        }
    }
    printf("%d\n",debt);
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
    int n;
    cin >> n;
    int ret = 100000;
    for (int i = 0; i < n; i++) {
        ret += ret * 0.05;
        if (ret%1000) {
            ret = ret - ret % 1000 + 1000;
        }
    }
    cout<<ret<<endl;
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define REP(i,N) for(int i = 0; i < (int)N; i++)


int main(){
	int n;
	cin >> n;
	double money = 100000;
	REP(i,n){
		money += money*5/100;
		money = ceil(money/pow(10,3))*pow(10,3);
	}
	cout << money;
	return 0;
}

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

using namespace std;

int main() {

	int N, i, sum=100000;

	cin >> N;

	for (i = 0; i < N; i++) {
		sum *= 1.05;
	}

	sum = ((sum + 5000) / 10000)*10000;

	cout << sum << endl;

	return 0;

}