n=int(input())
if 0<=n<=100:
    sum=100000
    for i in range(n):
        sum=sum*1.05
        if sum%1000==0:
            pass
        else:
            sum=sum-(sum%1000)+1000
    print(int(sum))
     n=int(input()) n int(input()) int input() input if 0<=n<=100:
    sum=100000
    for i in range(n):
        sum=sum*1.05
        if sum%1000==0:
            pass
        else:
            sum=sum-(sum%1000)+1000
    print(int(sum))
     0<=n<=100 0<=n 0 n 100 sum=100000 sum 100000 for i in range(n):
        sum=sum*1.05
        if sum%1000==0:
            pass
        else:
            sum=sum-(sum%1000)+1000
     i range(n) range n sum=sum*1.05 sum sum*1.05 sum 1.05 if sum%1000==0:
            pass
        else:
            sum=sum-(sum%1000)+1000
     sum%1000==0 sum%1000 sum 1000 0 sum=sum-(sum%1000)+1000 sum sum-(sum%1000)+1000 sum-(sum%1000) sum sum%1000 sum 1000 1000 print(int(sum)) print int(sum) int sum sum=sum*1.05 sum*1.05 sum sum=sum-(sum%1000)+1000 sum-(sum%1000)+1000 sum sum=100000 100000 sum n=int(input()) int(input()) n
n=int(input())
if 0<=n<=100:
    sum=100000
    for i in range(n):
        sum=sum*1.05
        if sum%1000==0:
            pass
        else:
            sum=sum-(sum%1000)+1000
    print(int(sum))
    
