#include <iostream>
using namespace std;
int main()
{
	long long int a = 0, x;
	cin >> x;
	for (a = 0; a <= x; a++)
	{
		a = a*1.05;
	}
	if (a % 1000 == 0)
	{
		cout << a << endl;
	}
	else
	{
		a - a & 1000 + 1000;
	}
	return 0;
}