from math import ceil

debt = 100000

n = int(eval(input()))

for _ in range(n):

    tmp = ceil(debt*1.05)

    debt = ceil((tmp/1000))*1000

print(debt)
import math

debt = 100000

n = int(eval(input()))

for i in range(n):

    interest = 0.05 * debt

    debt += (math.ceil(interest / 1000) * 1000)

print(debt)
from math import ceil

debt = 100000
n = int(eval(input()))
for _ in range(n):
    tmp = ceil(debt * 1.05)
    debt = ceil((tmp / 1000)) * 1000
print(debt)

import math

debt = 100000
n = int(eval(input()))
for i in range(n):
    interest = 0.05 * debt
    debt += math.ceil(interest / 1000) * 1000
print(debt)

-from math import ceil +import math -for _ in range(n): -    tmp = ceil(debt * 1.05) -    debt = ceil((tmp / 1000)) * 1000 +for i in range(n): +    interest = 0.05 * debt +    debt += math.ceil(interest / 1000) * 1000