Go: package main

import (
  "fmt"
)

func main() {
  var a int
  var b int
  b = 100000
  fmt.Scan(&a)
  for i:= 0; i<a; i++ {
    b *= 105
    b /= 100
    if (b%1000 != 0) {
      b -= b%1000
      b += 1000
    }
  }
  fmt.Println(b)
}

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

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int n,i,kane=100000;
	cin>>n;
	for(i=0;i<n;i++){
		kane=kane*1.05;
	}
	kane=kane-kane%10000+10000;
	cout<<kane;
	return 0;
}

C++: #include <iostream>
typedef unsigned long long ULL;
using namespace std;
inline ULL round(ULL t)
{
    cout << t << endl;
    return ((ULL)((double)t / 1000 + 0.5))*1000;
}
int main()
{
    int t;
    ULL res = 100000;
    cin >> t;
    while(t--)
    {
        res *= 1.05;
        if(res % 1000 !=0)
            res += 1000 - res % 1000;
    }
    cout << res << endl;
    return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <cmath>
//ranker
using namespace std;

#define REPS(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) REPS(i, 0, n)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (int i = (a); i >= n; --i)
#define DEP(i, n) DEPS(i, n, 0)

using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


const int Max=10000000;
bool prime[Max];
int main(void){
  int n, sum=100000;
cin >> n;


  for(int i=0; i<n; i++){
    sum = 1.05*sum;
    sum = (sum/1000+1)*1000; 
  }
  cout << sum << endl;
}

C++: #include<stdio.h>
int main()
{
	int n,x,kane=100000,kioku;
	double kane2;
	scanf("%d",&n);
	for(x=0; x<n; x++)
	{
		kioku=kane;
		kane=kane+kane*0.05;
		kane2=kane*0.001;
		kane2+=0.9;
		kane=kane2;
		kane*=1000;
	}
	printf("%d\n",kane);
	return 0;
}

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

int main(void){
    int n,debt;
    debt=100000;
    std::cin>>n;
    while(n--){
        debt*=1.05;
        if(debt%1000){
            debt+=1000-debt%1000;    
        }
    }
    std::cout<<debt<<std::endl;
    return 0;
}

C++: #pragma GCC optimize "O3"
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#define whole(f,x,...) ([&](decltype((x)) whole) { return (f)(begin(whole), end(whole), ## __VA_ARGS__); })(x)
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define REP_FROM(i,m,n) for (int i = (m); (i) < int(n); ++(i))
#define REP_REV(i,n) for (int i = (n)-1; (i) >= 0; --(i))
#define REP_FROMREV(i,m,n) for (int i = (n)-1; (i) >= int(m); --(i))
#define CLR(a) memset((a), 0 ,sizeof(a))
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
#ifndef LOCAL
#define cerr if (false) cerr
#endif
using namespace std;
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
template<class T> inline T sqr(T x) {return x*x;}
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

template <class T> inline void setmax(T & a, T const & b) { a = max(a, b); }
template <class T> inline void setmin(T & a, T const & b) { a = min(a, b); }
template <class T> T sq(T x) { return x * x; }
template <class T> T clamp(T a, T l, T r) { return min(max(a, l), r); } // [l, r]
const double EPS = 1e-10;
const double PI  = acos(-1.0);

const int debt = 100000;

int solve(int n) {
	n++;
	int interest = debt * n;
	interest /= 20;
	return debt + interest + EPS;
}

int main(int argc, char *argv[]) {
	// Something to do
	int n;
	while(cin >> n) {
		cout << solve(n) << endl;
	}
	return 0;
}

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

using namespace std;

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

  int debt = 100000;
  for (int i=0; i<n; i++) {
    debt += debt*0.05;

    int amari = debt % 1000;
    if (amari > 0) {
      debt -= amari;
      debt += 1000;
    }
  }
  cout << debt << endl;

  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){int n,m=1e5;
for(cin>>n;n>0;n--)m=(m*105/100+999)/1000*1000;
cout<<m<<endl;
return 0;}

C++: #include <iostream>
#include <algorithm>
int main()
{
  const int BASE = 100000;
  int n, debt = BASE;
  std::cin >> n;
  while (n--) {
    debt = (debt * 1.05 + 999) / 1000;
    debt *= 1000;
  }
  std::cout << debt << std::endl;
  return 0;
}

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

int main() {
    int d = 100000;
    int n;
    cin >> n;
    while(n > 0; n--) {
        d *= 1.05;
        if(d % 1000) {
            d = (d / 1000 + 1) * 1000;
        }
    }
        cout << d << endl;
    return 0;
}

C++: #include <stdio.h>
main() {
  int i,n,m=100000;
  scanf("%d",&n);
  for(i=0;i<n;i++) {
    m *= 1.05; if(m%1000) m+=1000;
    m/=1000; m*=1000;
  }
  printf("%d\n",m);
}

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

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

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

int main() {
  unsigned int week;
  cin >> week;
  float debt = 100;  // in unit of 1000.

  for(int i=0; i<week; i++) {
    debt *= 1.05;
    debt = ceil(debt);
  }

  cout << debt*1000 << endl;

  return 0;
}

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

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

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

int main(){
   double a = 1.05, n;
   cin >> n;
   double debt =  100000 * pow(a, n);
   int i = (int)debt / 10000 * 10000 + 10000;
   cout << i << endl;
}

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

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

  cin >> n;

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

  cout << money << endl;

  return 0;
}

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

int main()
{
	int n;
	while (cin >> n)
	{
		int money = 100000;
		while (n--)
		{
			money *= 1.05;
		}
		if (money % 10000 != 0)
		{
			money -= (money % 10000);
			money += 10000;
		}
		cout << money << endl;
	}

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
	int n,i;
	double m=100.0;
	cin>>n;
	for(i=0;i<n;i++){
		m*=1.05;
		if(m-(int)m>0.0){
			m+=1.0;
			m=(int)m;
		}
	}
	cout<<m<<"000"<<endl;
	return 0;
}

C++: #include<iostream>
#include<math.h>
using namespace std;
int main() {
    int n;
    double dbt;
    dbt = 100000;
    cin >> n;
    for (; n > 0; n--) {
        dbt = dbt * 1.05;
        dbt = dbt / 1000;
        dbt = ceil(dbt);
        dbt = dbt * 1000;
    }
    cout << dbt << endl;
    return 0;
}