if __name__ == '__main__':
    # ??????????????\???
    weeks = int(input())
    principal = 100000

    # ??????????¨????
    for i in range(weeks):
        interest = principal * 0.05
        principal += interest
        fraction = principal % 1000
        if fraction != 0:
            principal += (1000 - fraction)

    # ???????????????
    print(int(principal)) if __name__ == '__main__':
    # ??????????????\???
    weeks = int(input())
    principal = 100000

    # ??????????¨????
    for i in range(weeks):
        interest = principal * 0.05
        principal += interest
        fraction = principal % 1000
        if fraction != 0:
            principal += (1000 - fraction)

    # ???????????????
    print(int(principal)) __name__ == '__main__' __name__ '__main__' weeks = int(input()) weeks int(input()) int input() input principal = 100000 principal 100000 for i in range(weeks):
        interest = principal * 0.05
        principal += interest
        fraction = principal % 1000
        if fraction != 0:
            principal += (1000 - fraction)

    # ???????????????
     i range(weeks) range weeks interest = principal * 0.05 interest principal * 0.05 principal 0.05 principal += interest principal interest fraction = principal % 1000 fraction principal % 1000 principal 1000 if fraction != 0:
            principal += (1000 - fraction)

    # ???????????????
     fraction != 0 fraction 0 principal += (1000 - fraction) principal 1000 - fraction 1000 fraction print(int(principal)) print int(principal) int principal weeks = int(input()) int(input()) weeks principal = 100000 100000 principal principal += interest interest principal fraction = principal % 1000 principal % 1000 fraction principal += (1000 - fraction) 1000 - fraction principal interest = principal * 0.05 principal * 0.05 interest
if __name__ == '__main__':
    # ??????????????\???
    weeks = int(input())
    principal = 100000

    # ??????????¨????
    for i in range(weeks):
        interest = principal * 0.05
        principal += interest
        fraction = principal % 1000
        if fraction != 0:
            principal += (1000 - fraction)

    # ???????????????
    print(int(principal))