import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;

public class Main {

    public static void main(String[] args) throws Exception {
        //?????????
        final BigDecimal TAX_RATE = new BigDecimal("0.05");
        //?????°?????????????????????????????¨??????
        final int ROUND_UP_FRACTION = 1000;
        //???????????????????????????10???
        int deptLeft = 100000;

        BufferedReader reader = new BufferedReader(new InputStreamReader(
                System.in));
        int countWeeks = Integer.parseInt(reader.readLine());
        //1??±??????????????¨??????????????????????????????????????????????¨??????????
        for (int count = 1; count <= countWeeks; count++) {
            deptLeft = BigDecimal.valueOf(deptLeft)
                    .add(BigDecimal.valueOf(deptLeft).multiply(TAX_RATE))
                    .intValue();
            //1000?????????????????????????????????
            if (deptLeft % ROUND_UP_FRACTION != 0) {
                deptLeft = deptLeft
                        + (ROUND_UP_FRACTION - deptLeft % ROUND_UP_FRACTION);
            }
        }
        System.out.println(deptLeft);
    }
}
/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