# -*- coding: utf-8 -*-

import sys

def debt_interest(debt, weeks, rate=0.05, cut_up=1000):
    if weeks != 1:
        debt = debt_interest(debt, weeks-1, rate=rate, cut_up=cut_up)

    debt *= 1 + rate
    c = debt % cut_up
    if c != 0:
        debt += cut_up - c
    return debt

def main():
    debt = 100000.
    n = int(input())
    ret = debt_interest(debt, n)
    print(int(ret))

if __name__ == '__main__':
    main() import sys sys def debt_interest(debt, weeks, rate=0.05, cut_up=1000):
    if weeks != 1:
        debt = debt_interest(debt, weeks-1, rate=rate, cut_up=cut_up)

    debt *= 1 + rate
    c = debt % cut_up
    if c != 0:
        debt += cut_up - c
    return debt debt_interest if weeks != 1:
        debt = debt_interest(debt, weeks-1, rate=rate, cut_up=cut_up)

     weeks != 1 weeks 1 debt = debt_interest(debt, weeks-1, rate=rate, cut_up=cut_up) debt debt_interest(debt, weeks-1, rate=rate, cut_up=cut_up) debt_interest debt weeks-1 weeks 1 rate=rate rate rate cut_up=cut_up cut_up cut_up debt *= 1 + rate debt 1 + rate 1 rate c = debt % cut_up c debt % cut_up debt cut_up if c != 0:
        debt += cut_up - c
     c != 0 c 0 debt += cut_up - c debt cut_up - c cut_up c return debt debt debt debt weeks weeks rate=0.05 rate 0.05 cut_up=1000 cut_up 1000 def main():
    debt = 100000.
    n = int(input())
    ret = debt_interest(debt, n)
    print(int(ret)) main debt = 100000. debt 100000. n = int(input()) n int(input()) int input() input ret = debt_interest(debt, n) ret debt_interest(debt, n) debt_interest debt n print(int(ret)) print int(ret) int ret if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    debt = 100000.
    n = int(input())
    ret = debt_interest(debt, n)
    print(int(ret)) def main():
    debt = 100000.
    n = int(input())
    ret = debt_interest(debt, n)
    print(int(ret)) main def debt_interest(debt, weeks, rate=0.05, cut_up=1000):
    if weeks != 1:
        debt = debt_interest(debt, weeks-1, rate=rate, cut_up=cut_up)

    debt *= 1 + rate
    c = debt % cut_up
    if c != 0:
        debt += cut_up - c
    return debt def debt_interest(debt, weeks, rate=0.05, cut_up=1000):
    if weeks != 1:
        debt = debt_interest(debt, weeks-1, rate=rate, cut_up=cut_up)

    debt *= 1 + rate
    c = debt % cut_up
    if c != 0:
        debt += cut_up - c
    return debt debt_interest
# -*- coding: utf-8 -*-

import sys

def debt_interest(debt, weeks, rate=0.05, cut_up=1000):
    if weeks != 1:
        debt = debt_interest(debt, weeks-1, rate=rate, cut_up=cut_up)

    debt *= 1 + rate
    c = debt % cut_up
    if c != 0:
        debt += cut_up - c
    return debt

def main():
    debt = 100000.
    n = int(input())
    ret = debt_interest(debt, n)
    print(int(ret))

if __name__ == '__main__':
    main()