import java.util.Scanner;

/**
 * 
 * @author hiranoi
 *
 *         ?????????????????§??????????????????????????°??£?????? ???????????????????\?????????? 10 ???????????????????????????????????¨??????????????????????????¨???????????????
 *         ???????\???????????????±????????¨??? 5% ???????????????????????????????????????????????? 1,000 ?????????????????????????????????
 * 
 *         ??´??° n ?????\?????????n??±???????????????????????????????????????????????°?????????????????????????????????
 *
 */
public class Main {
    static final int DEBT = 100000;
    static final double PER = 1.05;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int week = Integer.parseInt(sc.nextLine());
        System.out.println(calcDebt(week));
    }

    private static int calcDebt(int week) {
        double nowDebt = DEBT; // ??¨??????????????????
        for (int i = 0; i < week; i++) {
            nowDebt = nowDebt * PER;
            nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;
        }
        return (int) nowDebt;
    }
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz