n=int(input())
s=100000
for i in range(n):
    s*=1.05
    p=s%1000
    if p!=0:
        s+=1000-p
print(int(s)) n=int(input()) n int(input()) int input() input s=100000 s 100000 for i in range(n):
    s*=1.05
    p=s%1000
    if p!=0:
        s+=1000-p i range(n) range n s*=1.05 s 1.05 p=s%1000 p s%1000 s 1000 if p!=0:
        s+=1000-p p!=0 p 0 s+=1000-p s 1000-p 1000 p print(int(s)) print int(s) int s s+=1000-p 1000-p s p=s%1000 s%1000 p s*=1.05 1.05 s n=int(input()) int(input()) n s=100000 100000 s
n=int(input())
s=100000
for i in range(n):
    s*=1.05
    p=s%1000
    if p!=0:
        s+=1000-p
print(int(s))
