# AOJ 0007 Debt Hell
# Python3 2018.6.7 bal4u

a = 100000;
n = int(input())
while n > 0:
	n -= 1
	a = a + (a * 5) // 100
	a = ((a - 1) // 1000 + 1) * 1000   # 1000未満の切り上げ
print(a) a = 100000 a 100000 n = int(input()) n int(input()) int input() input while n > 0:
	n -= 1
	a = a + (a * 5) // 100
	a = ((a - 1) // 1000 + 1) * 1000   # 1000未満の切り上げ n > 0 n 0 n -= 1 n 1 a = a + (a * 5) // 100 a a + (a * 5) // 100 a (a * 5) // 100 a * 5 a 5 100 a = ((a - 1) // 1000 + 1) * 1000 a ((a - 1) // 1000 + 1) * 1000 (a - 1) // 1000 + 1 (a - 1) // 1000 a - 1 a 1 1000 1 1000 print(a) print a a = 100000 100000 a n = int(input()) int(input()) n a = ((a - 1) // 1000 + 1) * 1000 ((a - 1) // 1000 + 1) * 1000 a a = a + (a * 5) // 100 a + (a * 5) // 100 a n -= 1 1 n
# AOJ 0007 Debt Hell
# Python3 2018.6.7 bal4u

a = 100000;
n = int(input())
while n > 0:
	n -= 1
	a = a + (a * 5) // 100
	a = ((a - 1) // 1000 + 1) * 1000   # 1000未満の切り上げ
print(a)
