import java.util.Scanner;

public class Main {
    public static final double FIRST_DEBT = 100000.0;
    public static final double INTEREST = 0.05;
    public static final double CEIL_BASE = 1000.0;

    public static void main(String args[]) {
        System.out.println(
            calcDebt(FIRST_DEBT, new Scanner(System.in).nextInt())
        );

    }

    private static int calcDebt(double firstDebt, int nWeeks) {
        double debt = firstDebt;
        for(int i = 0; i< nWeeks; i++) {
            debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE;
        }
        return (int)debt;
    }
}  import java.util.Scanner; Scanner java.util public class Main {
    public static final double FIRST_DEBT = 100000.0;
    public static final double INTEREST = 0.05;
    public static final double CEIL_BASE = 1000.0;

    public static void main(String args[]) {
        System.out.println(
            calcDebt(FIRST_DEBT, new Scanner(System.in).nextInt())
        );

    }

    private static int calcDebt(double firstDebt, int nWeeks) {
        double debt = firstDebt;
        for(int i = 0; i< nWeeks; i++) {
            debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE;
        }
        return (int)debt;
    }
} Main public static final double FIRST_DEBT = 100000.0; FIRST_DEBT 100000.0 public static final double INTEREST = 0.05; INTEREST 0.05 public static final double CEIL_BASE = 1000.0; CEIL_BASE 1000.0 public static void main(String args[]) {
        System.out.println(
            calcDebt(FIRST_DEBT, new Scanner(System.in).nextInt())
        );

    } main {
        System.out.println(
            calcDebt(FIRST_DEBT, new Scanner(System.in).nextInt())
        );

    } System.out.println(
            calcDebt(FIRST_DEBT, new Scanner(System.in).nextInt())
        ) System.out.println System.out System System.out calcDebt(FIRST_DEBT, new Scanner(System.in).nextInt()) calcDebt FIRST_DEBT new Scanner(System.in).nextInt() new Scanner(System.in).nextInt new Scanner(System.in) String args[] args private static int calcDebt(double firstDebt, int nWeeks) {
        double debt = firstDebt;
        for(int i = 0; i< nWeeks; i++) {
            debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE;
        }
        return (int)debt;
    } calcDebt {
        double debt = firstDebt;
        for(int i = 0; i< nWeeks; i++) {
            debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE;
        }
        return (int)debt;
    } double debt = firstDebt; debt firstDebt for(int i = 0; i< nWeeks; i++) {
            debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE;
        } int i = 0; int i = 0; i 0 i< nWeeks i nWeeks i++ i++ i {
            debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE;
        } {
            debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE;
        } debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE debt Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) Math.ceil Math debt * (1 + INTEREST) / CEIL_BASE debt * (1 + INTEREST) debt (1 + INTEREST) 1 INTEREST CEIL_BASE CEIL_BASE return (int)debt; (int)debt double firstDebt firstDebt int nWeeks nWeeks public class Main {
    public static final double FIRST_DEBT = 100000.0;
    public static final double INTEREST = 0.05;
    public static final double CEIL_BASE = 1000.0;

    public static void main(String args[]) {
        System.out.println(
            calcDebt(FIRST_DEBT, new Scanner(System.in).nextInt())
        );

    }

    private static int calcDebt(double firstDebt, int nWeeks) {
        double debt = firstDebt;
        for(int i = 0; i< nWeeks; i++) {
            debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE;
        }
        return (int)debt;
    }
} public class Main {
    public static final double FIRST_DEBT = 100000.0;
    public static final double INTEREST = 0.05;
    public static final double CEIL_BASE = 1000.0;

    public static void main(String args[]) {
        System.out.println(
            calcDebt(FIRST_DEBT, new Scanner(System.in).nextInt())
        );

    }

    private static int calcDebt(double firstDebt, int nWeeks) {
        double debt = firstDebt;
        for(int i = 0; i< nWeeks; i++) {
            debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE;
        }
        return (int)debt;
    }
} Main
import java.util.Scanner;

public class Main {
    public static final double FIRST_DEBT = 100000.0;
    public static final double INTEREST = 0.05;
    public static final double CEIL_BASE = 1000.0;

    public static void main(String args[]) {
        System.out.println(
            calcDebt(FIRST_DEBT, new Scanner(System.in).nextInt())
        );

    }

    private static int calcDebt(double firstDebt, int nWeeks) {
        double debt = firstDebt;
        for(int i = 0; i< nWeeks; i++) {
            debt = Math.ceil(debt * (1 + INTEREST) / CEIL_BASE) * CEIL_BASE;
        }
        return (int)debt;
    }
} 