a=raw_input()
debt = 100000
for i in range(int(a)):
    debt += debt/20
    b=debt%1000
    if b > 0:
	debt += 1000-b
print debt a=raw_input() a raw_input() raw_input debt = 100000 debt 100000 for i in range(int(a)):
    debt += debt/20
    b=debt%1000
    if b > 0:
	debt += 1000-b i range(int(a)) range int(a) int a debt += debt/20 debt debt/20 debt 20 b=debt%1000 b debt%1000 debt 1000 if b > 0:
	debt += 1000-b b > 0 b 0 debt += 1000-b debt 1000-b 1000 b print a=raw_input() raw_input() a debt += 1000-b 1000-b debt b=debt%1000 debt%1000 b debt += debt/20 debt/20 debt debt = 100000 100000 debt
a=raw_input()
debt = 100000
for i in range(int(a)):
    debt += debt/20
    b=debt%1000
    if b > 0:
	debt += 1000-b
print debt