#include <iostream>
using namespace std ;

int main()
{
	int get ;
	int debt = 100000 ;
	int num[4] ;

	cin >> get ;
	for( int i = 0 ; i < get ; i ++ )
	{
		debt *= 1.05 ;
		int tmp = debt ;

		for( int j = 0 ; j < 4 ; j ++ )
		{
			num[j] = (tmp % 10) ;
			tmp /= 10 ;
		}

		if( num[0] != 0 || num[1] != 0 || num[2] != 0 )
		{
			debt -= (num[0] + num[1]*10 + num[2]*100) ;
			debt += 1000 ;
		}
	}

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