Go: package main

import (
	"fmt"
	"math"
)

func main() {
	var n int
	hellGate := 100.000

	fmt.Scanf("%d", &n)

	for i := 1; i <= n; i++ {
		hellGate *= 1.05
		hellGate = math.Ceil(hellGate)
	}

	fmt.Println(int(hellGate * 1000))
}

C++: #include <iostream>
#include <vector>
#include <utility>
#include <string>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <string.h>
#include <deque>
#define REP(i,j,n) for(int i=j;i<n;i++)
#define SORT(x) sort(x.begin(),x.end())

using namespace std;



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

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

C++: #include<iostream>
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;
      money+=1000;
    }
  }
  cout<<money<<endl;
  return 0;
}

C++: #include<stdio.h>
int main(void)
{
    int n,i,j,x;
	scanf("%d",&n);
    i=100000;
	for(j=0;j<n;j++){
	    i=i*5/100+i;
		x=i%1000;
		if(x!=0){
		    x=1000-x;
			i=i+x;
		}
	}
	printf("%d\n",i);
	return 0;
}

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

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

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

using namespace std;

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

C++: //
//  main.cpp
//  CppTest
//
//  Created by Ryu on 2017/02/08.
//  Copyright ?? 2017??´ Ryu. All rights reserved.
//

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    long n = 0;
    cin >> n;
    
    long rest = 100000;
    for (int i = 0; i < n; i++) {
        rest *= 1.05;
    }
    
    if(rest % 1000 != 0){
        rest = rest + 1000 -  rest % 1000;
    }
    
    
    printf("%ld", rest);
    
    return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
int main(){
	long long int ans=100000;
	int n;
	cin>>n;
	for(int i=0;i<n;i++){
		ans=ans*105/100;
		if(ans%1000!=0){
			ans=ans/1000*1000+1000;
		}
	}
	cout<<ans<<endl;
    return 0;
}

C++: #include <cstdio>
#include <iostream>
#include <cmath>
#include <ctype.h>
#include <string> 
#include <sstream>
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <map>
#include <queue>
#include <utility>
#include <vector>
#include <set>
#include <list>
#include <cstring>
#include <stack>
   
using namespace std;

int main()
{
    int n;
    cin >> n;
    long long int money = 100000;
    for(int i = 0; i < n; i++){
        money = money * 105 / 100;
        if(money % 1000 > 0){
            money -= money % 1000;
            money += 1000;
        }
    }
    cout << money << endl;
    return 0;
}

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

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

	cin >> n;
	while (n--) 
		debt = (debt + 999) / 1000 * 1000;
	cout << debt << endl;

	return 0;
}

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

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl;
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    int n;
    cin >> n;
    int b = 100000;
    rep(i, n)
    {
        b = b * 1.05;
        if (b % 1000 != 0)
        {
            b = (int)(b / 1000 + 1) * 1000;
        }
    }
    OP(b)
    return 0;
}

C++: #include<iostream>
using namespace std;
 
int main() {
    int d = 100000;
    int n;
    cin >> n;
    while(n-- > 0) {
        d *= 1.05;
        if(d % 1000) {
            d = (d / 1000 + 1) * 1000;
        }
    }
        cout << d << endl;
    return 0;
}

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

int n;//n週間
double sum;//n週間後の借金

int main(){
  sum = 100000;
  scanf("%d",&n);
  for(int i= 0;i < n;i++){
    sum += 0.05*sum;
    sum = ceil(sum/1000)*1000;
}
  
  int ans =(int)sum;
  printf("%d",ans);
}

C++: #include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
typedef long long ll;

ll calcDebt(ll debt)
{
    debt = debt * 1.05;
    debt = ceil(debt / 1000) * 1000;
    return debt;
}

int main()
{
    int n;
    ll debt = 100000;
    cin >> n;
    for(int c = 0; c < n; c++)
        debt = calcDebt(debt);
    cout << debt << endl;
    return EXIT_SUCCESS;
}

C++: #include <algorithm>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <cctype>
#include <iostream>
#include <set>
#include <string>
#include <queue>
#include <map>
using namespace std;
int size(string x){
	string::size_type size=x.size();
	return size;
}
#define fu(l,k) for(int i=l;i<k;i++)
#define fd(l,k) for(int i=l;i>k;i--)
#define fi first
#define se second
typedef  vector<string> vs;
typedef  vector<int> vi;
double pi(){
	return M_PI;
}
typedef set<int> set_i;
typedef set<string> set_s;
int main(){
	int n;
	int ss=100000;
	cin>>n;
	fu(0,n){
		ss=ss*1.05;
		if(ss%1000!=0) ss=ss/1000*1000+1000;
	}
	cout<<ss<<endl;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  int cnt;
  long long int ans=100000;
  for(int i=0;i<n;++i){
    ans*=105;
    ans/=100;
    cnt=ans%1000;
    ans=ans-cnt;
    if(cnt>=1)
      ans+=1000;
  }
  cout<<ans<<endl;
}

C++: #include <iostream>

using namespace std;


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

	cin >> n;

	while(n > 0){
		debt *= 1.05;
		debt += (debt % 1000) ? 1000 - (debt % 1000) : 0;
		n--;
	}

	cout << debt << endl;

	return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(void){
   int a,ans;
   float b = 100000.0f;
   std::cin >> a;
   for(int i = 0; i < a; i++){
       b *= 1.05f;
       b /= 1000;
       double c = ceil(b);
       b = c * 1000;
       std::cout << b << std::endl;
   }
    
}

C++: a=1e5;main(N){scanf("%d",&N);while(N--)a*=1.05,a+=(a%1000)?1e3-a%1000:0;a=!printf("%d\n",a);}

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

int main()
{
	double debt = 100000.0;
	int N;

	cin >> N;

	for (; N > 0; N--){
		debt *= 1.05;

		debt /= 1000;
		debt = ceill(debt);
		debt *= 1000;
	}

	cout << debt ;

	return 0;
}

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

#include <math.h>

int main(){

	int n=0;
	double syakkin = 100000.0;

	cin >> n;


	for (int i = 0; i < n; i++){
		syakkin = syakkin * 1.05;
		if (long(syakkin) % 1000 != 0){
			syakkin = syakkin - double(long(syakkin) % 1000) + 1000.0;
		}
		//cout << syakkin << endl;
	}
	
	cout << syakkin << endl;

	return 0;
}

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

C++: #include<stdio.h>
#include<stdlib.h>
#include<math.h>

int main(){

	int a = 100000;
	int b = 0;
	float c = 0.05;
	int n = 0;

	scanf("%d",&n);

	if (n > 100)
	{
		n = 100;
	}

	b = a * c;

	for (int i = 0; i < n; i++)
	{
		a += b;
	}

	a = int(a / 1000) * 1000;

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

	return 0;
}