#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#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>
#include <fstream>
#include <complex>
#include <math.h>
#include <ctype.h>
using namespace std;
int n,debt=100000;

int main(){
	cin>>n;
	for(int i=0;i<n;i++){
	debt/=20;debt*=21;
	if(debt%1000!=0){debt-=debt%1000;debt+=1000;}}
	cout<<debt<<endl;
    return 0;}
