#include <iostream>
#include <vector>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <ctime>
#include <iterator>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;

int main()
{
   int n;
   cin>>n;
   int act = 100000;
   for(int c=0;c<n;c++)
   {
       act = (act + act / 20);
        if(act % 1000) act = (act/1000+1)*1000;
   }
   cout<<act<<endl;
}