n=input()
loan=10**5
for i in xrange(n):
    loan+=loan*0.05
    if loan%1000!=0:
        loan-=loan%1000
        loan+=10**3
    else:
        loan-=loan%1000
print(int(loan)) n=input() n input() input loan=10**5 loan 10**5 10 5 for i in xrange(n):
    loan+=loan*0.05
    if loan%1000!=0:
        loan-=loan%1000
        loan+=10**3
    else:
        loan-=loan%1000 i xrange(n) xrange n loan+=loan*0.05 loan loan*0.05 loan 0.05 if loan%1000!=0:
        loan-=loan%1000
        loan+=10**3
    else:
        loan-=loan%1000 loan%1000!=0 loan%1000 loan 1000 0 loan-=loan%1000 loan loan%1000 loan 1000 loan+=10**3 loan 10**3 10 3 loan-=loan%1000 loan loan%1000 loan 1000 print(int(loan)) print int(loan) int loan loan+=loan*0.05 loan*0.05 loan loan+=10**3 10**3 loan loan-=loan%1000 loan%1000 loan loan=10**5 10**5 loan n=input() input() n loan-=loan%1000 loan%1000 loan
n=input()
loan=10**5
for i in xrange(n):
    loan+=loan*0.05
    if loan%1000!=0:
        loan-=loan%1000
        loan+=10**3
    else:
        loan-=loan%1000
print(int(loan))