Go: package main

import (
	"fmt"
	"os"
	"bufio"
	"strconv"
	"math"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	
	for scanner.Scan() {
		n, _ := strconv.Atoi(scanner.Text())
		debt := 100000 * math.Pow(1.05, float64(n))
		rounddebt := int(math.Ceil(debt*0.0001)) * 10000
		fmt.Println(rounddebt)
	}
}

C++: #include <iostream>
#include <cstring>
#include <cstdio>
 
using namespace std;
void sort(char *str){
    int len, len2 = 0;
    char work; 
    len = strlen(str);
 
    // 両端から交換
    for(len = len - 1; len > len2; len--, len2++){
        work = str[len];
        str[len] = str[len2];
        str[len2] = work;
    }
}
 
int main(){
    char str[21];
 
    cin >> str;
    sort(str);
    cout << str << endl;
    return 0;
}

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

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	double cap = 100000.0;
	int n;
	cin >> n;
	for (int i=0;i<n;i++){
		cap *= 1.05;
		cap /= 1000;
		cap = ceil(cap);
		cap *= 1000;
	}
	cout << int(cap) << endl;
}

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;
    return 0;
}

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

int main()
{
    int n = 0;                                          //n習慣
    double debt = 100000;                                  //10万借金

    cin >> n;                                           //入力

    for( int i = 0; i < n; i++ )                        //n回繰り返す
    {
        debt = debt * 1.05;                             //5%増える
        if( (int)debt % 1000 != 0 )                     //1~999は切り上がる
            debt = ( debt / 1000 + 1 ) * 1000;
    }

    cout << debt;

    return 0;
}

C++: #include <iostream>

int main(void)
{
    int debt = 100000;

    int n;
    std::cin >> n;

    for(int i = 0; i < n; ++i)
    {
        debt *= 1.05;
        debt += (debt % 1000 != 0 ? 1000 - debt % 1000 : 0);
    }

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

C++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007&lang=jp*/

#include <iostream>
#include <cmath>

using namespace std;

int main(){
    int n,r=100;
    cin>>n;
    for (int i = 0; i < n; ++i) {
        r=ceil(r*1.05);
    }
    cout<<r*1000<<endl;
    return 0;
}

C++: #include <iostream>


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

C++: #include <iostream>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main() {
    int debt = 10000;
    int n;
    cin >> n;
    REP(i,n) {
        debt += debt / 20;
        debt = (debt + 500)/1000*1000;
    }
    cout << debt << '\n';
}

C++: #include <iostream>
#include <string>
#include <map>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <math.h>
#include <iomanip>
using namespace std;
int main(){
  int n,res;
  double m=100000;
  cin>>n;
  if(!n){cout<<m<<endl;return 0;}
  for(;n;n--)
    m*=1.05;
  m/=10000;
  m+=1;
  res=(int)m*10000;
  cout<<res<<endl;
  return 0;
}

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

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

	int loan = 100000;
	for (int i = 0; i < n; i++) {
		loan *= 1.05;
		if (int tmp = loan % 1000)
			loan += 1000 - tmp;
	}
	std::cout << loan << std::endl;
}

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

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

  for (int i = 1; i <= n; i++){
    debt *= 105;
    debt /= 100;
    if (debt % 1000 > 0){
      debt /= 1000;
      debt++;
      debt *= 1000;
    }
  }
  cout << debt << "\n";

  return 0;
}

C++: #include <iostream>
#include <vector>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <ctime>
#include <iterator>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;

int main()
{
   int n;
   cin>>n;
   int act = 100000;
   for(int c=0;c<n;c++)
   {
       act = (act + act / 20);
        if(act % 1000) act = (act/1000+1)*1000;
   }
   cout<<act<<endl;
}

C++: #include<iostream>
#include<cmath>
int main(){
	double yami = 100.000;
	int n;
	std::cin >> n;
	for(int i = 0;i < n; ++i){
		yami += yami / 20.000;
		if(ceil(yami) != floor(yami)){
			yami = ceil(yami);
		}
	}
	std::cout << yami * 1000 << '\n';
	return 0;
}

C++: #include <iostream>

int main() {
	int nWeeksLater;
	std::cin >> nWeeksLater;

	const int first = 100000;
	int interest = first * 0.05;
	int loan;

	for (int i = 0; i < nWeeksLater; i++)
		loan = first + interest * nWeeksLater;

//std::cout << loan << std::endl;

	int a = loan / 10000;
//std::cout << a << std::endl;
	loan = loan % 10000 >= 5000 ? (a + 1) * 10000 : a * 10000;

	std::cout << loan << std::endl;
}

C++: #include<iostream>

using namespace std;

int main(){

int x = 100000,y,n = 1;
cin >> y;

while(n <= y){
  if(x % 1000 == 0){
    x = x*1.05;}
  else {
  x =(x - x % 1000 + 1000)*1.05;}
  ++n;}

if(x % 1000 == 0) {cout << x << endl;}
 else {cout << x - x % 1000 + 1000 << endl;}

return 0;
}

C++: #include<iostream>

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

C++: ///
// File:  0007.cpp
// Author: ymiyamoto
//
// Created on Wed Nov  8 22:11:50 2017
//

#include <cstdint>
#include <iostream>

using namespace std;

#define DEBT_INIT 100000

int32_t main()
{
  uint32_t weeks;
  cin >> weeks;

  uint64_t debt = DEBT_INIT;
  for (uint32_t i = 0; i < weeks; i++) {
    uint64_t interest = ((uint64_t)(debt * 0.05 + 999) / 1000) * 1000;
    debt += interest;
  }

  cout << debt << endl;

  return 0;
}

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

#define N 100000;

int main()
{
	int n;
	int a;
	a = N;
	cin >> n;
	for (int i = 0; i < n; ++i)
	{
		a *= 1.05;
	}
	cout << a / 10000 * 10000 + 10000<< endl;
}

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

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

C++: #include <iostream>

int main(){
	int n,debt=100000;
	std::cin>>n;
	for(int i=0;i<n;i++){
		debt*=1.05;
		debt=debt%1000 ? debt/1000*1000+1000 : debt
	}
	std::cout<<debt<<'\n';
	return 0;
}

C++: #include <stdio.h>

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

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

	return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
	double debt = 100000.0;
	int n, r;
	cin >> n;
	while ( n-- > 0 ){
		debt *= 1.05;
		r = (int)debt % 1000;
		if ( r != 0 ){
			debt = debt - r + 1000;
		}
	}
	cout << debt << endl;
	
	return 0;
}

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

int main(){

	int n;
	int sum = 100000;

	cin>>n;

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

		sum *= 105/100.0;

		if(sum%1000>100){
			sum /= 1000;
			sum *= 1000;
			sum += 1000;
		}
	}

	cout<<sum<<endl;
	return 0;
}

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

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

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

  return (0);
}