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

class Main {

	public static void main(String[] a) {
	      String line = "";
	      try {
	        BufferedReader stdReader =
	          new BufferedReader(new InputStreamReader(System.in));
	        line = stdReader.readLine();
	        stdReader.close();
	      } catch (Exception e) {
	        e.getStackTrace();
	        System.exit(-1); // ????????°???????????????
	      }
		// TODO ?????????????????????????????????????????????
		int debt = 100000;
		int n = 0;
		n = Integer.parseInt(line);
		for(int i=0;i<n;i++){
			debt = interest(debt);
		}
		System.out.println(debt);
	}

	public static int interest(int n){
		double added;
		added = n * 1.05;
		added = 1000*Math.ceil(added/1000);
		return (int)added;
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	public static void main(String[] a) {
	      String line = "";
	      try {
	        BufferedReader stdReader =
	          new BufferedReader(new InputStreamReader(System.in));
	        line = stdReader.readLine();
	        stdReader.close();
	      } catch (Exception e) {
	        e.getStackTrace();
	        System.exit(-1); // ????????°???????????????
	      }
		// TODO ?????????????????????????????????????????????
		int debt = 100000;
		int n = 0;
		n = Integer.parseInt(line);
		for(int i=0;i<n;i++){
			debt = interest(debt);
		}
		System.out.println(debt);
	}

	public static int interest(int n){
		double added;
		added = n * 1.05;
		added = 1000*Math.ceil(added/1000);
		return (int)added;
	}

} Main public static void main(String[] a) {
	      String line = "";
	      try {
	        BufferedReader stdReader =
	          new BufferedReader(new InputStreamReader(System.in));
	        line = stdReader.readLine();
	        stdReader.close();
	      } catch (Exception e) {
	        e.getStackTrace();
	        System.exit(-1); // ????????°???????????????
	      }
		// TODO ?????????????????????????????????????????????
		int debt = 100000;
		int n = 0;
		n = Integer.parseInt(line);
		for(int i=0;i<n;i++){
			debt = interest(debt);
		}
		System.out.println(debt);
	} main {
	      String line = "";
	      try {
	        BufferedReader stdReader =
	          new BufferedReader(new InputStreamReader(System.in));
	        line = stdReader.readLine();
	        stdReader.close();
	      } catch (Exception e) {
	        e.getStackTrace();
	        System.exit(-1); // ????????°???????????????
	      }
		// TODO ?????????????????????????????????????????????
		int debt = 100000;
		int n = 0;
		n = Integer.parseInt(line);
		for(int i=0;i<n;i++){
			debt = interest(debt);
		}
		System.out.println(debt);
	} String line = ""; line "" try {
	        BufferedReader stdReader =
	          new BufferedReader(new InputStreamReader(System.in));
	        line = stdReader.readLine();
	        stdReader.close();
	      } catch (Exception e) {
	        e.getStackTrace();
	        System.exit(-1); // ????????°???????????????
	      } catch (Exception e) {
	        e.getStackTrace();
	        System.exit(-1); // ????????°???????????????
	      } Exception e {
	        e.getStackTrace();
	        System.exit(-1); // ????????°???????????????
	      } e.getStackTrace() e.getStackTrace e System.exit(-1) System.exit System -1 1 {
	        BufferedReader stdReader =
	          new BufferedReader(new InputStreamReader(System.in));
	        line = stdReader.readLine();
	        stdReader.close();
	      } BufferedReader stdReader =
	          new BufferedReader(new InputStreamReader(System.in)); stdReader new BufferedReader(new InputStreamReader(System.in)) line = stdReader.readLine() line stdReader.readLine() stdReader.readLine stdReader stdReader.close() stdReader.close stdReader int debt = 100000; debt 100000 int n = 0; n 0 n = Integer.parseInt(line) n Integer.parseInt(line) Integer.parseInt Integer line for(int i=0;i<n;i++){
			debt = interest(debt);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			debt = interest(debt);
		} {
			debt = interest(debt);
		} debt = interest(debt) debt interest(debt) interest debt System.out.println(debt) System.out.println System.out System System.out debt String[] a a public static int interest(int n){
		double added;
		added = n * 1.05;
		added = 1000*Math.ceil(added/1000);
		return (int)added;
	} interest {
		double added;
		added = n * 1.05;
		added = 1000*Math.ceil(added/1000);
		return (int)added;
	} double added; added added = n * 1.05 added n * 1.05 n 1.05 added = 1000*Math.ceil(added/1000) added 1000*Math.ceil(added/1000) 1000 Math.ceil(added/1000) Math.ceil Math added/1000 added 1000 return (int)added; (int)added int n n
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] a) {
	      String line = "";
	      try {
	        BufferedReader stdReader =
	          new BufferedReader(new InputStreamReader(System.in));
	        line = stdReader.readLine();
	        stdReader.close();
	      } catch (Exception e) {
	        e.getStackTrace();
	        System.exit(-1); // ????????°???????????????
	      }
		// TODO ?????????????????????????????????????????????
		int debt = 100000;
		int n = 0;
		n = Integer.parseInt(line);
		for(int i=0;i<n;i++){
			debt = interest(debt);
		}
		System.out.println(debt);
	}

	public static int interest(int n){
		double added;
		added = n * 1.05;
		added = 1000*Math.ceil(added/1000);
		return (int)added;
	}

}