import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        Scanner scan = new Scanner(System.in);
        double sum = 100000.0;
        int a = scan.nextInt();
        for(int i =1 ;i<=a ;i++){
            sum = sum *0.05+sum;
            sum = (Math.ceil(sum /1000)) *1000;
        }
        System.out.printf("%.0f\n",sum);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        Scanner scan = new Scanner(System.in);
        double sum = 100000.0;
        int a = scan.nextInt();
        for(int i =1 ;i<=a ;i++){
            sum = sum *0.05+sum;
            sum = (Math.ceil(sum /1000)) *1000;
        }
        System.out.printf("%.0f\n",sum);
    }
} Main public static void main(String[] args) throws Exception {
        // Here your code !
        Scanner scan = new Scanner(System.in);
        double sum = 100000.0;
        int a = scan.nextInt();
        for(int i =1 ;i<=a ;i++){
            sum = sum *0.05+sum;
            sum = (Math.ceil(sum /1000)) *1000;
        }
        System.out.printf("%.0f\n",sum);
    } main {
        // Here your code !
        Scanner scan = new Scanner(System.in);
        double sum = 100000.0;
        int a = scan.nextInt();
        for(int i =1 ;i<=a ;i++){
            sum = sum *0.05+sum;
            sum = (Math.ceil(sum /1000)) *1000;
        }
        System.out.printf("%.0f\n",sum);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) double sum = 100000.0; sum 100000.0 int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan for(int i =1 ;i<=a ;i++){
            sum = sum *0.05+sum;
            sum = (Math.ceil(sum /1000)) *1000;
        } int i =1 ; int i =1 ; i 1 i<=a i a i++ i++ i {
            sum = sum *0.05+sum;
            sum = (Math.ceil(sum /1000)) *1000;
        } {
            sum = sum *0.05+sum;
            sum = (Math.ceil(sum /1000)) *1000;
        } sum = sum *0.05+sum sum sum *0.05+sum sum *0.05 sum 0.05 sum sum = (Math.ceil(sum /1000)) *1000 sum (Math.ceil(sum /1000)) *1000 (Math.ceil(sum /1000)) Math.ceil Math sum /1000 sum 1000 1000 System.out.printf("%.0f\n",sum) System.out.printf System.out System System.out "%.0f\n" sum String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        Scanner scan = new Scanner(System.in);
        double sum = 100000.0;
        int a = scan.nextInt();
        for(int i =1 ;i<=a ;i++){
            sum = sum *0.05+sum;
            sum = (Math.ceil(sum /1000)) *1000;
        }
        System.out.printf("%.0f\n",sum);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        Scanner scan = new Scanner(System.in);
        double sum = 100000.0;
        int a = scan.nextInt();
        for(int i =1 ;i<=a ;i++){
            sum = sum *0.05+sum;
            sum = (Math.ceil(sum /1000)) *1000;
        }
        System.out.printf("%.0f\n",sum);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        Scanner scan = new Scanner(System.in);
        double sum = 100000.0;
        int a = scan.nextInt();
        for(int i =1 ;i<=a ;i++){
            sum = sum *0.05+sum;
            sum = (Math.ceil(sum /1000)) *1000;
        }
        System.out.printf("%.0f\n",sum);
    }
}