import static java.lang.System.out;
import java.io.File;
import static java.lang.Integer.parseInt;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        new Main().debt();
    }

    public void debt() {
        try (Scanner scan = new Scanner(System.in)) {
            debtHell(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void debt(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            debtHell(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void debtHell(Scanner scan) {
        double debt = 100000;
        int week = parseInt(scan.nextLine());
        for (int i = 0; i < week; i++)
            debt = rateCalc(debt);
        out.println((int) debt);
    }

    private double rateCalc(double debt) {
        debt *= 1.05;
        return (debt % 1000 > 0) ? debt + 1000 - debt % 1000 : debt;
    }
} import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; import java.io.File; File java.io import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        new Main().debt();
    }

    public void debt() {
        try (Scanner scan = new Scanner(System.in)) {
            debtHell(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void debt(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            debtHell(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void debtHell(Scanner scan) {
        double debt = 100000;
        int week = parseInt(scan.nextLine());
        for (int i = 0; i < week; i++)
            debt = rateCalc(debt);
        out.println((int) debt);
    }

    private double rateCalc(double debt) {
        debt *= 1.05;
        return (debt % 1000 > 0) ? debt + 1000 - debt % 1000 : debt;
    }
} Main public static void main(String[] args) {
        new Main().debt();
    } main {
        new Main().debt();
    } new Main().debt() new Main().debt new Main() String[] args args public void debt() {
        try (Scanner scan = new Scanner(System.in)) {
            debtHell(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    } debt {
        try (Scanner scan = new Scanner(System.in)) {
            debtHell(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    } try (Scanner scan = new Scanner(System.in)) {
            debtHell(scan);
        } catch (Exception e) {
            System.exit(0);
        } catch (Exception e) {
            System.exit(0);
        } Exception e {
            System.exit(0);
        } System.exit(0) System.exit System 0 {
            debtHell(scan);
        } Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) debtHell(scan) debtHell scan public void debt(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            debtHell(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    } debt {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            debtHell(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    } try (Scanner scan = new Scanner(new File(inputDataPath))) {
            debtHell(scan);
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            debtHell(scan);
        } Scanner scan = new Scanner(new File(inputDataPath)) Scanner scan = new Scanner(new File(inputDataPath)) new Scanner(new File(inputDataPath)) debtHell(scan) debtHell scan String inputDataPath inputDataPath private void debtHell(Scanner scan) {
        double debt = 100000;
        int week = parseInt(scan.nextLine());
        for (int i = 0; i < week; i++)
            debt = rateCalc(debt);
        out.println((int) debt);
    } debtHell {
        double debt = 100000;
        int week = parseInt(scan.nextLine());
        for (int i = 0; i < week; i++)
            debt = rateCalc(debt);
        out.println((int) debt);
    } double debt = 100000; debt 100000 int week = parseInt(scan.nextLine()); week parseInt(scan.nextLine()) parseInt scan.nextLine() scan.nextLine scan for (int i = 0; i < week; i++)
            debt = rateCalc(debt); int i = 0; int i = 0; i 0 i < week i week i++ i++ i debt = rateCalc(debt); debt = rateCalc(debt) debt rateCalc(debt) rateCalc debt out.println((int) debt) out.println out (int) debt Scanner scan scan private double rateCalc(double debt) {
        debt *= 1.05;
        return (debt % 1000 > 0) ? debt + 1000 - debt % 1000 : debt;
    } rateCalc {
        debt *= 1.05;
        return (debt % 1000 > 0) ? debt + 1000 - debt % 1000 : debt;
    } debt *= 1.05 debt 1.05 return (debt % 1000 > 0) ? debt + 1000 - debt % 1000 : debt; (debt % 1000 > 0) ? debt + 1000 - debt % 1000 : debt (debt % 1000 > 0) debt % 1000 debt 1000 0 debt + 1000 - debt % 1000 debt + 1000 debt 1000 debt % 1000 debt 1000 debt double debt debt public class Main {

    public static void main(String[] args) {
        new Main().debt();
    }

    public void debt() {
        try (Scanner scan = new Scanner(System.in)) {
            debtHell(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void debt(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            debtHell(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void debtHell(Scanner scan) {
        double debt = 100000;
        int week = parseInt(scan.nextLine());
        for (int i = 0; i < week; i++)
            debt = rateCalc(debt);
        out.println((int) debt);
    }

    private double rateCalc(double debt) {
        debt *= 1.05;
        return (debt % 1000 > 0) ? debt + 1000 - debt % 1000 : debt;
    }
} public class Main {

    public static void main(String[] args) {
        new Main().debt();
    }

    public void debt() {
        try (Scanner scan = new Scanner(System.in)) {
            debtHell(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void debt(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            debtHell(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void debtHell(Scanner scan) {
        double debt = 100000;
        int week = parseInt(scan.nextLine());
        for (int i = 0; i < week; i++)
            debt = rateCalc(debt);
        out.println((int) debt);
    }

    private double rateCalc(double debt) {
        debt *= 1.05;
        return (debt % 1000 > 0) ? debt + 1000 - debt % 1000 : debt;
    }
} Main
import static java.lang.System.out;
import java.io.File;
import static java.lang.Integer.parseInt;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        new Main().debt();
    }

    public void debt() {
        try (Scanner scan = new Scanner(System.in)) {
            debtHell(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void debt(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            debtHell(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void debtHell(Scanner scan) {
        double debt = 100000;
        int week = parseInt(scan.nextLine());
        for (int i = 0; i < week; i++)
            debt = rateCalc(debt);
        out.println((int) debt);
    }

    private double rateCalc(double debt) {
        debt *= 1.05;
        return (debt % 1000 > 0) ? debt + 1000 - debt % 1000 : debt;
    }
}