Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextInt() int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func calc(n int) float64 {
	tmp := 100000.0
	for i := 0; i < n; i++ {
		tmp *= 1.05
		tmp = ceil(tmp, -3)
	}
	return tmp
}

func ceil(f float64, places int) float64 {
	shift := math.Pow(10, float64(places))
	return math.Ceil(f*shift)/shift
}

func main() {
	scanner.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(int(ans))
}

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

C++: #include <iostream>
#include <math.h>
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>
#include<cmath>

#define N 100000

using namespace std;

int main(void){
long int debt = 0;

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


  return 0;
}

C++: #include <bits/stdc++.h>

const static double	de_PI	= 3.14159265358979323846;
const static int	de_MOD	= 1000000007;
const static int	de_MAX	= 999999999;
const static int	de_MIN = -999999999;

int main(void) {

	//std::ifstream in("123.txt");	std::cin.rdbuf(in.rdbuf());

	int a = 0;
	std::cin >> a;

	double n = 100000;
	for (int i = 0; i < a; i++) {
		n = n*1.05;
		n = static_cast<int>(ceil(n / 1000));
		n = n * 1000;
	}

	std::cout << std::setprecision(20) << n << std::endl;
}

C++: #include <iostream>
using namespace std;
 
int main(){
    int a, b;
    int price = 100000;

    cin >> a;
    for (int i = 0; i < a; i++) {
        price *= 1.05;
        b = price % 1000;
        if (b != 0) {
            price += 1000;
            price -= b;
        }
    }
    cout << price << endl;

    return 0;
}

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

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

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

    return 0;
}

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

using namespace std;

int roundUp(int x, int index);

int main(void)
{
    int i;
    int n;
    double intrst;
    int debt;
    
    cin >> n;
    
    debt = 100000;
    intrst = 0.05;
    for (i = 0; i < n; i++) {
        debt *= 1.0 + intrst;
        debt = roundUp(debt, 4);
    }
    
    cout << debt << endl;
    
    return 0;
}

int roundUp(int x, int index)
{
    int exp10;
    
    exp10 = pow(10, index - 1);
    x += exp10 - 1;
    x /= exp10;
    x *= exp10;
    
    return x;
}

C++: #include <bits/stdc++.h>
using namespace std;
long money = 100000;
void up() {
    int judge = money % 1000;
    cout << judge << endl;
    if(judge) {
        money -= judge; money += 1000;
    }
}

int main(void) {
    int n; cin >> n;
    for(int r = 0; r < n; r++) {
        money *= 1.05; up();
    }
    cout << money << endl;
    return(0);
}

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

int main(void){
    int i,n;
    double ans;
    cin >> n;
    ans=100.000;
    for(i=0;i<n;i++){
        ans*=1.05;
        cout << i+1 << ":::" << ans << "->";
        ans=(int)(ans+0.999);
        cout << ans << "->";
        ans=(double)ans;
        cout << ans << endl;
    }
    ans*=1000;
    printf("%d\n",(int)ans);
    return 0;
}

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

C++: #include <iostream>

using namespace std;

int main(int argc, char *argv[]) {
  int n;
  double debt = 100000;
  
  cin >> n;
  for (int i = 0; i < n; i++) {
    debt *= 1.05;
    debt = (int)(debt / 1000 + 0.9) * 1000;
  }
  cout << debt << endl;
  return 0;
}

C++: #include<stdio.h>

main(void){
    int money = 100000, num;
    
    scanf("%d", &num);
    
    for( ; num >= 0; num--){
        money += money * 0.05;
    }
    
    printf("%d\n", (money/10000)*10000);

    return 0;
}

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

static bool input(int& n)
{
    if (0x00 == &n) {
        std::cerr << "n is null" << std::endl;
        return false;
    }

    std::string tmp("");
    char c = 0;

    std::cin >> c;
    if (isdigit((int)c)) {
        tmp = c;
    	n = std::atoi(tmp.c_str());
    }

    return true;
}

static int calcBalanceOfDebt(int n)
{
    double balance = 100000;

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

    return (int)balance;
}

int main()
{
    int num = 0;

    input(num);
    std::cout << calcBalanceOfDebt(num) << std::endl;

    return 0;
}

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

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

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

C++: #include <cstdio>

int Solve(int n){
	int c = 100000;
	int self;
	for(int i = 0;i < n;i++){
		c *= 1.05;
		self = c % 1000;
		if(self > 0){
			c -= self;
			c += 1000;
		}
	}
	return c;
}

int main(){
	int n;
	while(scanf("%d",&n) != EOF){
		printf("%d\n",Solve(n));
	}
	return 0;
}

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

int main(){
int n,ans,a;
cin>>n;
ans=100000;
for(int i=0;i<n;i++){
ans*=1.05;
a=ans%1000;
if(a!=0){
ans=ans-a+1000;}}
cout<<ans<<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<iostream>
using namespace std;

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

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

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


using namespace std;


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

	while(cin >> n){
		for(int i=0;i<n;i++){
			ans = ans * 1.05;
			if(ans % 1000 > 0){
				ans = ((ans / 1000) + 1) * 1000;
			}
		}
		printf("%d\n",ans);

		ans = 100000;
	}

	return 0;
}

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

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

	cin >> n;
	for (int i = 0; i < n; i++) {
		v += v / 20;
		if (v % 1000) {
			v -= v % 1000;
			v += 1000;
		}
	}
	cout << v << endl;
}

C++: #include <iostream>

using namespace std;
 

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

	int debt = 100000;
	for (int i = 0; i < n; ++i)
	{
		debt *= 1.05;
		if (debt % 1000 > 0) debt += 1000;
		debt /= 1000, debt *= 1000;
		cout << debt << endl;
	}

	return 0;
}