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>
#include<cmath>
int main()
{
  int n;
  std::cin>>n;
  int i;
  int sum=100;
  for(i=0;i<n;i++)
    {
      sum+=std::ceil(sum*0.05);
    }
  std::cout<<sum*1000<<std::endl;

  return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(void){
   int a;
   float b = 100000.0f;
   std::cin >> a;
   
   if(a == 0) std::cout << b << std::endl;
   
   else if(a <= 100 && a >= 0){
       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++: 
#include<iostream>
#include<string>
using namespace std;
int main(){
    long long a=100000;
    int n;
    cin>>n;
    for(int i=0;i<n;i++){
        a*=1.05;
        if(a%1000==0)
            a-=1000;
        a/=1000;
        a*=1000;
        a+=1000;
    }
    cout<<a<<endl;
    return 0;
}

C++: #include <stdio.h>

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

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

int main(){
 long long int Debt = 100000;
 int n;

 cin >> n;

 for (int i=0; i<n; i++) {
   Debt = Debt * 1.05;
   if(Debt % 10000 > 0) Debt = Debt - (Debt % 10000) + 10000;
  }

 cout << n << endl;

 return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
long i,n,t=100;
cin>>n;
for(i=0;i<n;i++)t=ceil(t*1.05);
cout<<t*1000<<endl;
return 0;
}

C++: #include <stdio.h>

int main(){
    long debt = 100;
    int n;
    int i;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        debt = (long)(debt*1.05+0.99);
    }
    printf("%ld\n",debt*1000);
}

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

int main()
{
	int n;
	double debt = 10;//10(??????), 1000??? = 0.1(??????)
	const double risi = 0.05;

	cin >> n;
	for(int i = 0;i < n;i++){
		debt += debt * risi;
		cout << i << " : " << debt << endl;
	}
	
	cout << ceil(debt) * 10000 << endl;

	return 0;
}

C++: #include <cstdio>

using namespace std;

long long roundup(long long *x){
  (*x) += 999;
  (*x) /= 1000;
  (*x) *= 1000;
}

long long addinterest(long long *x){
  (*x) *= 1.05;
  roundup(x);
}

int main()
{
  long long debt = 100000;
  int n;
  scanf("%d", &n);
  while(n--)
    addinterest(&debt);

  printf("%lld\n", debt);
  return 0;
}

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

int main(){
  
  int 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 <iostream>
using namespace std;
int main(){
    int a=100000,b=0,t=0;
    cin>>t;
    
   // if(t==0)cout<<a<<endl;
    //else if(t<=100){
      for(int k=1;k<=t;k++){
         b=a*1.05;
         b=(b+900)/1000*1000;
         a=b;
       }
     cout<<a<<endl;
    //}
}

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

#define INPUT_FROM_FILE (0)
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(int argc, char **argv){
#if INPUT_FROM_FILE
	std::ifstream ifs("test.txt");
#endif
	int n = 0;
	int debt = 100000;

	std::cin >> n;
	
	for(int i = 0; i < n; i++){
		debt = int(debt * 1.05);
		debt = int(ceil(debt / 1000.0)) * 1000;
	}
	std::cout << debt << std::endl;
	return 0;
}

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

typedef long long ll;

double ceiler(double start) {
    //cout << start << endl;
    start /= 1000;
    //cout << start << endl;
    start = ceil(start);
    start *= 1000;
    return(start);
}

void check(int num) {
    cout << ceiler(num) << endl;
}

int main(void) {
    double tax = 0.05 * DEFAULT;
    double start = DEFAULT;
    int num;
    cin >> num;
    for(int r = 0; r <= num; r++) {
        start += tax;
    }
    //check(1000);
    start = ceiler(start);
    cout << (ll)start << endl;
    
    return(0);
}

C++: #include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{   
    int a;
    int x = 100;
    scanf("%d", &a);
    for (; a > 0; a--) {
        x = ceil((float)x * 1.05);
    }
    printf("%d\n", x * 1000);
    return 0;
}

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

int main(){
	int week,a,b,ans;
	cin>>week;
	a=100000*0.05;
	b=week+1;
	a*=b;
	ans=100000+a;
	ans/=10000;
	ans*=10000;
	ans+=1000;
	cout<<ans<<endl;
}

C++: #include <iostream>

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

C++: #include <stdio.h>

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

	scanf("%d", &n);
	for(int i=0 ; i<n ; i++){
		money += 100000.0 * 0.05;
		money += 1000 - (money%1000);
	}
	printf("%d\n", money);

	return 0;
}

C++: 
/*
 * main.cpp
 *
 *  Created on: 2011/04/08
 *      Author: satoki
 *      4:50 ~ 5:01
 */
#include <iostream>
#include <string.h>
using namespace std;

int iN;

bool input() {
  scanf("%d", &iN);
  return true;
}

int manage() {
  int k = 100;
  int m;
  int i;
  for (i = 0; i < iN; i++) {
    m = k * 5;
    if (m % 100 != 0) m += 100;
    m /= 100;
    k += m;
  }
  return k;
}

int main() {
  input();
  printf("%d000\n", manage());
  return 0;
}

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;
	double ss=100000;
	cin>>n;
	fu(0,n){
		ss=ss*1.05;
		if((int)ss%1000!=0) ss=(int)(ss/1000)*1000+1000;
	}
	cout<<ss<<endl;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	long double x=100000 , w ;
	int i , n , y ;
	while( cin >> n ){
		for( i=1 ; i<=n ; i++ ){
		x = x * 1.05 ;
		y = x;
		y = y/100 ;
		x =y;
		x = x/10;
		x = ceil( x );
		x = x*1000;
	}
	cout << x << endl;
}
}

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

C++: #include <iostream>
using namespace std;
 
int main(){
        int week,a,b,ans,aans;
        cin>>week;
        a=100000*0.05;
        b=week+1;
        a*=b;
        ans=100000+a;
        aans=ans/1000;
        aans=ans*1000;
        if(aans!=ans)ans+100;
        cout<<ans<<endl;
}

C++: #include <iostream>
#include<string>
#include<math.h>
#include<stdio.h>
#include <algorithm>
using namespace std;
int main(void){
    // Here your code !

int n;
int m=100000;
cin>>n;
for(;n--;){
if(int(m*1.05)%1000==0) m=int(m*1.05);
else m=int(m*1.05)+(1000-int(m*1.05)%1000); 
}

cout<<m<<endl;
return 0;
}

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