import sys

def compoundInterest(x, i, n):
    if n == 0:
        return x

    ans = int(x * (1 + i))
    hasu = ans % 1000
    if hasu != 0:
        ans -= hasu
        ans += 1000
    return compoundInterest(ans, i, n-1)

if __name__ == "__main__":
    n = int(input())
    ans = compoundInterest(100000, 0.05, n)
    print (ans) import sys sys def compoundInterest(x, i, n):
    if n == 0:
        return x

    ans = int(x * (1 + i))
    hasu = ans % 1000
    if hasu != 0:
        ans -= hasu
        ans += 1000
    return compoundInterest(ans, i, n-1) compoundInterest if n == 0:
        return x

     n == 0 n 0 return x x ans = int(x * (1 + i)) ans int(x * (1 + i)) int x * (1 + i) x 1 + i 1 i hasu = ans % 1000 hasu ans % 1000 ans 1000 if hasu != 0:
        ans -= hasu
        ans += 1000
     hasu != 0 hasu 0 ans -= hasu ans hasu ans += 1000 ans 1000 return compoundInterest(ans, i, n-1) compoundInterest(ans, i, n-1) compoundInterest ans i n-1 n 1 x x i i n n if __name__ == "__main__":
    n = int(input())
    ans = compoundInterest(100000, 0.05, n)
    print (ans) __name__ == "__main__" __name__ "__main__" n = int(input()) n int(input()) int input() input ans = compoundInterest(100000, 0.05, n) ans compoundInterest(100000, 0.05, n) compoundInterest 100000 0.05 n print (ans) print ans def compoundInterest(x, i, n):
    if n == 0:
        return x

    ans = int(x * (1 + i))
    hasu = ans % 1000
    if hasu != 0:
        ans -= hasu
        ans += 1000
    return compoundInterest(ans, i, n-1) def compoundInterest(x, i, n):
    if n == 0:
        return x

    ans = int(x * (1 + i))
    hasu = ans % 1000
    if hasu != 0:
        ans -= hasu
        ans += 1000
    return compoundInterest(ans, i, n-1) compoundInterest ans = compoundInterest(100000, 0.05, n) compoundInterest(100000, 0.05, n) ans n = int(input()) int(input()) n
import sys

def compoundInterest(x, i, n):
    if n == 0:
        return x

    ans = int(x * (1 + i))
    hasu = ans % 1000
    if hasu != 0:
        ans -= hasu
        ans += 1000
    return compoundInterest(ans, i, n-1)

if __name__ == "__main__":
    n = int(input())
    ans = compoundInterest(100000, 0.05, n)
    print (ans)