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 <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", money);

	return 0;
}

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

using namespace std;

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

C++: #include <stdio.h>

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

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

using namespace std;

int main() {
  int n, x = 100000;
  cin >> n;
  for (int i = 0; i < n; i++) {
    x += x / 20;
    x = (x + 999) / 1000 * 1000;
  }
  cout << x << endl;
  return 0;
}

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

int main(){
	int money = 100000, month;
	cin >>month;
	
	for(int i = 0; i < month; i++){
		money *= 1.05;
		if(money % 1000 != 0) money = (int)floor((double)money / 1000) * 1000 + 1000;
	}
	
	cout <<money<<endl;
	return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#pragma warning(disable:4996)

int main()
{

	int Debt = 100000;
	int Weeks = 0;
	scanf("%d", &Weeks);

	for (int nCnt = 0; nCnt < Weeks; nCnt++)
	{
		Debt += Debt * 0.05f;
		if (Debt % 1000 > 0)
			Debt += 1000 - (Debt % 1000);
	}

	printf("%d", Debt);

	return 0;
}

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

int n,i;
double debt=100;
int main(){
	scanf("%d",&n);
	for(i=0;i<n;i++){
	debt*=1.05;
	debt=ceil(debt);
	}
	printf("%.0f",debt*1000);
}

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

using namespace std;


int main()
{
	int i,n;
	cin >> n;
	
	int gaku = 100;

	for( i = 0; i < n; i++ ) {
		gaku = ceil(gaku * 1.05);
	}
	
	cout << gaku * 1000;

	return 0;
}

C++: #include <iostream>

int main(int argc, char** argv) {
	int n, balance, i, unit;
	double interest;
	balance = 100000;
	interest = 0.05;
	unit = 1000;
	std::cin >> n;
	for(i = 0; i < n; i++) {
		balance *= (1.00 + interest);
		if (balance % unit) {
		    balance += unit - (balance % unit);
		}
	}
	std::cout << balance << std::endl;
}

C++: #include<iostream>
using namespace std;
int main(){
	int moto=100,syuu;
	cin>>syuu;
	for(int abc=0;abc<syuu;abc++){
		if(moto%20!=0){
			moto=moto*1.05+1;
		}else{
			moto*=1.05;
		}
	}
	cout<<moto*1000<<endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

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

	cout << m << endl;
}

C++: #include<iostream>
#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<iostream>

using namespace std;
   
void Loan()
{
    int m;
    int sum = 100000;
    int week;
    
    cin>>week;
    
    for(int i=0; i<week; i++)
    {
        sum = sum * 1.05;
        
        m = sum % 1000;
        
        if(m > 0)
        {
            sum = sum - m + 1000; 
        }
        
    }
    
   cout<<sum;
   return;
}
     
int main()
{     
    Loan();
    return 0;
}

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

using namespace std;

int main()
{
	int N; cin >> N;
	const int base = 100000;
	int ans = base;
	
	for(int i = 0; i < N; i++)
	{
		ans += (ans * 0.05);
		
		int diff = (ans % 1000);
		if( diff != 0 )ans += (1000 - diff);
	}
	
	cout << ans << endl;
	return 0;
}

C++: #include <iostream>

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

    std::cin >> n;

    for (int i = 0; i < n; i++) {
        debt = 1000 * int(debt * 1.05 * 0.001 + 0.9);
    }

    std::cout << debt << std::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; //1555%1000=555
		if(debt%1000!=0) {
			debt-=debt%1000;
			debt+=1000;
		}
	}
	cout << debt << endl;
	return 0;
}

C++: #define _USE_MATH_DEFINES
#include<iostream>
#include<string>
#include<queue>
#include<cmath>
#include<map>
#include<set>
#include<list>
#include<iomanip>
#include<vector>
#include<random>
#include<functional>
#include<algorithm>
#include<stack>
#include<cstdio>
#include<bitset>
#include<unordered_map>
#include<climits>
#include<fstream>
using namespace std;
///////////////////library zone!!!!!!!!!!!!!!!!!!!!!!!!!!!!
typedef long long ll;
typedef long double ld;
#define all(a) (a).begin(),(a).end()
const ll Mod = 1000000007;
const ll mod = 998244353;
struct H {
	ll x, y;
	bool operator<(const H &b) const {
		if (x != b.x) return x < b.x;
		return y < b.y;
	}
	bool operator>(const H &b) const {
		if (x != b.x) return x > b.x;
		return y > b.y;
	}
	bool operator==(const H &b) const { return x == b.x&&y == b.y; }
	bool operator!=(const H &b) const { return (*this) != b; }
};
struct P {
	ll pos, cost;
	bool operator<(const P &b) const { return cost < b.cost; }
	bool operator>(const P &b) const { return cost > b.cost; }
};
struct B {
	ll to, cost;
};
struct E {
	ll from, to, cost;
	bool operator<(const E &b) const { return cost < b.cost; }
	bool operator>(const E &b) const { return cost > b.cost; }
};
template<typename T, typename U>
void chmin(T &a, U b) {
	if (a > b) a = b;
}
template<typename T, typename U>
void chmax(T &a, U b) {
	if (a < b) a = b;
}
template<typename T>
T max_0(T a) {
	if (a < 0) return 0;
	return a;
}
template<typename T>
T min_0(T a) {
	if (a > 0) return 0;
	return a;
}
ll read() {
	ll u;
	ll k = scanf("%lld", &u);
	return u;
}
ll gcd(ll i, ll j) {
	if (i > j) swap(i, j);
	if (i == 0) return j;
	return gcd(j%i, i);
}
ll mod_pow(ll x, ll n, ll p) {
	ll res = 1;
	while (n > 0) {
		if (n & 1) res = res * x % p;
		x = x * x % p;
		n >>= 1;
	}
	return res;
}//x^n%p
const ll Inf = 3023372036854775807;
const int inf = 1500000000;
#define int long long
//----------------------------------------------------
signed main() {
	int n;
	while (cin >> n) {
		int a = 100000;
		for (int i = 0; i < n; i++) {
			a = a * 105 / 100;
			if (a % 1000 > 0) {
				a = (a - a % 1000) + 1000;
			}
		}
		cout << a << endl;
	}
}

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

int main() {
	double m = 100;
	int n;

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

C++: #include<stdio.h>
#include<string.h>

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

    return 0;
}

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