#include <iostream>
#include <math.h>
using namespace std;
 
void test();
int interest(int debt, double interest_rate,int n);
 
 
int main(void)
{
    test();
    return 0;
}
 
void test()
{
    int debt,n;
    debt = 100000;
    cin >> n;
 
    debt = interest(debt, 1.05, n) ;
 
    if (debt % 1000 > 0)
    {
        debt = debt - (int)debt % 1000 + 1000;
    }
     
    cout << debt << endl;
}
 
int interest(int debt, double interest_rate,int n)
{
 
    if (n == 0)
        return debt * interest_rate;
    else
        return ceil(interest(debt, interest_rate, n - 1) * interest_rate);
}