#include <stdio.h>

int main(void)
{
	int loan;
	int n;
	
	loan = 100000;
	scanf("%d", &n);
	
	while (n){
		loan += (loan * 0.05);
		
		if (loan % 1000){
			loan += 1000;
		}
		
		loan /= 1000;
		loan *= 1000;
		
		n--;
	}
	
	printf("%d\n", loan);
	
	return (0);
}