#include <iostream>

int main() {
	int nWeeksLater;
	std::cin >> nWeeksLater;

	const int first = 100000;
	int interest = first * 0.05;
	int loan;

	for (int i = 0; i < nWeeksLater; i++)
		loan = first + interest * nWeeksLater;

	int a = loan / 1000;
	loan = loan % 1000 >= 500 ? (a + 1) * 1000 : a * 1000;

	std::cout << loan << std::endl;
}