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 <cstdio>
#include <stack>
using namespace std;

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

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

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

C++: #include <bits/stdc++.h>
#include <vector>
using namespace std;
int n, utang, bunga;
int main(){
	utang = 100000;
	cin >> n;
	for(int i = 1; i <= n; i++){
		bunga = utang * 5 / 100;
		if(bunga % 1000 == 0)
			bunga = bunga/1000 * 1000;
		else
			bunga = bunga/1000 * 1000 + 1000;
		
		cout << bunga << "\n";
		utang = utang + bunga;
	}
	cout << utang << "\n";
	return 0;
}

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

int main() {
	int n;
	cin >> n;
	long s = 100000;
	for (int i = 0; i<n; i++) {
		s = s * 1.05;
		int s1 = s % 1000;
		if (s1 != 0) {
			s = s - s1 + 1000;
		}
	}
	cout << s << "\n";
	return 0;
}

C++: 
/* vo00_07.cpp */
#include <iostream>
using namespace std;

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

	cin >> n;
	while (n--) {
		debt *= 1.05;
		if (tmp = debt % 1000) { debt += 1000; }
		debt -= tmp;
	}

	cout << (int)debt << '\n';

	return 0;
}

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

int main(){
	int n,i,out;
	double price = 100000;
	cin >> n;
	for(i=0;i<n;i++){
		price += price * 0.05;
	}
	out = (int)price/1000;
	out *= 1000;
	cout << out;
	return 0;
}

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

using namespace std;

int calcDebt(int debt){
	double tmp = debt * 1.05;
	int result = (int) ceil(tmp);
	if(result % 1000 == 0){
		return result;
	}else{
		return (result / 1000 + 1) * 1000;
	}
}

int main(int argc, char *argv[]) {
	int result = 100000;
	int n;
	scanf("%d", &n);
	for(int i=0; i<n; i++){
		result = calcDebt(result);
	}
	printf("%d", result);
}

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

using namespace std;

int main(int argc, char const* argv[])
{
	int n{};
	int lent{100000};
	std::cin >> n;
	for (int i = 0; i < n; i++) {
		lent += lent * 0.05;
		if (lent % 1000) {
			lent = (lent / 1000) * 1000;
			lent += 1000;
		}
	}
	cout << lent << std::endl;
	return 0;
}

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

int main() {
    int n;
    cin >> n;
    cout << 100000 + 5000 * (n+1) << endl;
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
	long d = 100000;
	int n;
	cin>>n;
	for(int i=1;i<=n;i++){
		d *= 1.05;
	}
	d /= 10000;
	d += 1;
	d *= 10000;
	cout<<d<<endl;

	return 0;
}

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

int main()
{
 int m = 100000;
 int w;

 cin >> w;

 for(int i=0; i<w; i++){
  m *= 1.05;
  m += 999;
  m /= 1000;
  m *= 1000;
 }

 cout << m << '\n';

 return 0;
}

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

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

C++: #include <iostream>

using namespace std;

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

	for (int i = 0; i < n; i++) {
		money *= 1.05;
		if (money % 1000 == 0 && i > 0) continue;
		money = money-(money%1000)+1000;
	}

	cout << money-1000 << endl;

	return 0;
}

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

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

  cout << price << endl;
  }

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

int main(){
	int n;
	cin>>n;
	int ans=100000;
	for(int i=0;i<n;i++){
		ans=(ans*1.05);
		int ans2=ans/1000;
		ans2*=1000;
		if(ans!=ans2){
			ans=ans2+1000;
		}else{
			ans=ans2;
		}
	}
	cout<<ans<<endl;
	return 0;
}

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

int main()
{
	int week, n = 100000;
	cin >> week;
	for (int i = 0; i < week; i++)
	{
		n += n * 0.05;
		//cout << n << endl;
		if (n % 1000 != 0) n = ((n + 1000) / 1000) * 1000;
	}
	cout << n << endl;
	return 0;
}

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

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

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

using namespace std;

#define LOG(...) fprintf(stderr, __VA_ARGS__)
//#define LOG(...)
#define FOR(i, a, b) for(int i=(int)(a); i<(int)(b); ++i)
#define REP(i, n) for(int i=0; i<(int)(n); ++i)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define EXIST(s, e) ((s).find(e)!=(s).end())
#define SORT(c) sort(ALL(c))
#define RSORT(c) sort(RALL(c))
#define SQ(n) (n) * (n)

typedef long long ll;
typedef unsigned long long ull;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vb> vvb;
typedef vector<vi> vvi;
typedef vector<vll> vvll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

int main() {
  int n, m = 100000;
  cin >> n;
  REP(i, n) m = ceil(m * 1.05 / 1000) * 1000;
  cout << m << endl;
}

C++: #include<iostream>

using namespace std;

int main(){
	int n,debt=100000;
	cin>>n;
	while(n--){
		debt=debt*1.05;
		debt+=999;
		debt/=1000;
		debt*=1000;
	}
	cout<<debt<<endl;
	return 0;
}

C++: #include<iostream>
//#define DEBT 100000

using namespace std;

main(){
int inNum,i;
int debt = 100000;

cin>>inNum;
for(i = 0; i < inNum; i++){
debt*=1.05;
}
debt/=10000;
debt+=1;
debt*=10000;
cout<<debt<<endl;
}

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

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

int main() {

    int n;
    long debt = 100;
    cin >> n;

    for(int i = 1; i <= n; i++) {
        int r = 0;
        if (debt % 20) {    r = 1;  }

        debt = debt * 1.05 + r;
    }

    cout << debt << "000" << endl;
     
    return 0;
}

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

int main(){
    int n, a = 100000, b = 105;
    cin >> n;
    for(int i = 0;i < n;i++){
      a *= b;
      a /= 100; 
    }
    a /= 1000;
    a *= 1000;
    cout << a + 10000 << endl;
    }

C++: // Reverse Sequence
#define _USE_MATH_DEFINES
#include <cstdio>
#include <cstring>
#include <cmath>
#include <iostream>

using namespace std;

int main()
{
	unsigned int n;
	
	cin >> n;
	
	double a = 100000;
	for (int i = 0; i < n; i++)
	{
		a *= 1.05;
		a /= 1000;
		a = ceil(a);
		a *= 1000;
	}
	cout << a << endl;
	
	return 0;
}

C++: #include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<functional>

using namespace std;

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