import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        int weeks = new Scanner(System.in).nextInt();
        double debt = 100000;
        for(int i = 0; i < weeks;i++) {
            debt *= 1.05;
            double fraction = debt % 1000;
            if (fraction != 0)debt += 1000 - fraction;
        }
        System.out.println((long)debt);
}
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        int weeks = new Scanner(System.in).nextInt();
        double debt = 100000;
        for(int i = 0; i < weeks;i++) {
            debt *= 1.05;
            double fraction = debt % 1000;
            if (fraction != 0)debt += 1000 - fraction;
        }
        System.out.println((long)debt);
}
} Main public static void main(String[] args) {
        int weeks = new Scanner(System.in).nextInt();
        double debt = 100000;
        for(int i = 0; i < weeks;i++) {
            debt *= 1.05;
            double fraction = debt % 1000;
            if (fraction != 0)debt += 1000 - fraction;
        }
        System.out.println((long)debt);
} main {
        int weeks = new Scanner(System.in).nextInt();
        double debt = 100000;
        for(int i = 0; i < weeks;i++) {
            debt *= 1.05;
            double fraction = debt % 1000;
            if (fraction != 0)debt += 1000 - fraction;
        }
        System.out.println((long)debt);
} int weeks = new Scanner(System.in).nextInt(); weeks new Scanner(System.in).nextInt() new Scanner(System.in).nextInt new Scanner(System.in) double debt = 100000; debt 100000 for(int i = 0; i < weeks;i++) {
            debt *= 1.05;
            double fraction = debt % 1000;
            if (fraction != 0)debt += 1000 - fraction;
        } int i = 0; int i = 0; i 0 i < weeks i weeks i++ i++ i {
            debt *= 1.05;
            double fraction = debt % 1000;
            if (fraction != 0)debt += 1000 - fraction;
        } {
            debt *= 1.05;
            double fraction = debt % 1000;
            if (fraction != 0)debt += 1000 - fraction;
        } debt *= 1.05 debt 1.05 double fraction = debt % 1000; fraction debt % 1000 debt 1000 if (fraction != 0)debt += 1000 - fraction; fraction != 0 fraction 0 debt += 1000 - fraction debt 1000 - fraction 1000 fraction System.out.println((long)debt) System.out.println System.out System System.out (long)debt String[] args args
import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        int weeks = new Scanner(System.in).nextInt();
        double debt = 100000;
        for(int i = 0; i < weeks;i++) {
            debt *= 1.05;
            double fraction = debt % 1000;
            if (fraction != 0)debt += 1000 - fraction;
        }
        System.out.println((long)debt);
}
}