import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    static int debt = 100000;

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int w = Integer.parseInt(line);
            for (int i = 0; i < w; i++) {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            }
            System.out.println(debt);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    static int debt = 100000;

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int w = Integer.parseInt(line);
            for (int i = 0; i < w; i++) {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            }
            System.out.println(debt);
        }
    }
} Main static int debt = 100000; debt 100000 public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int w = Integer.parseInt(line);
            for (int i = 0; i < w; i++) {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            }
            System.out.println(debt);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int w = Integer.parseInt(line);
            for (int i = 0; i < w; i++) {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            }
            System.out.println(debt);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = ""; line "" while ((line = br.readLine()) != null && !line.isEmpty()) {
            int w = Integer.parseInt(line);
            for (int i = 0; i < w; i++) {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            }
            System.out.println(debt);
        } (line = br.readLine()) != null && !line.isEmpty() (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null !line.isEmpty() line.isEmpty() line.isEmpty line {
            int w = Integer.parseInt(line);
            for (int i = 0; i < w; i++) {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            }
            System.out.println(debt);
        } int w = Integer.parseInt(line); w Integer.parseInt(line) Integer.parseInt Integer line for (int i = 0; i < w; i++) {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            } int i = 0; int i = 0; i 0 i < w i w i++ i++ i {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            } {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            } debt *= 1.05 debt 1.05 if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                } debt % 1000 > 0 debt % 1000 debt 1000 0 {
                    debt = debt - (debt % 1000) + 1000;
                } debt = debt - (debt % 1000) + 1000 debt debt - (debt % 1000) + 1000 debt - (debt % 1000) debt (debt % 1000) debt 1000 1000 System.out.println(debt) System.out.println System.out System System.out debt String[] args args public class Main {

    static int debt = 100000;

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int w = Integer.parseInt(line);
            for (int i = 0; i < w; i++) {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            }
            System.out.println(debt);
        }
    }
} public class Main {

    static int debt = 100000;

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int w = Integer.parseInt(line);
            for (int i = 0; i < w; i++) {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            }
            System.out.println(debt);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    static int debt = 100000;

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int w = Integer.parseInt(line);
            for (int i = 0; i < w; i++) {
                debt *= 1.05;
                if (debt % 1000 > 0) {
                    debt = debt - (debt % 1000) + 1000;
                }
            }
            System.out.println(debt);
        }
    }
}