import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// ?¨??????\???????????±??°?????????
		Scanner stdId = new Scanner(System.in);
		int deptWeek = stdId.nextInt();

		// ??????
		int dept = 100000;

		// ????????????????????????
		System.out.println(String.valueOf(deptCalc(dept, deptWeek)));

	}

	// ??????(baseMoney)??¨??????????????±??°(deptweek)?????????????????§???????????????????¨????
	public static int deptCalc(int baseDept, int deptWeek) {

		// ?????°??£?¨?
		double dept = (double) baseDept; // ??????
		int ceilLength = 1000; // ????????????????????°???

		// n??±???????????????5%??????????????????(1000??????????????????????????¨??????)
		dept = dept / ceilLength;
		for (int i = 0; i < deptWeek; i++) {
			dept *= 1.05;
			dept = Math.ceil(dept);
		}
		dept *= ceilLength;

		return (int) dept;
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		// ?¨??????\???????????±??°?????????
		Scanner stdId = new Scanner(System.in);
		int deptWeek = stdId.nextInt();

		// ??????
		int dept = 100000;

		// ????????????????????????
		System.out.println(String.valueOf(deptCalc(dept, deptWeek)));

	}

	// ??????(baseMoney)??¨??????????????±??°(deptweek)?????????????????§???????????????????¨????
	public static int deptCalc(int baseDept, int deptWeek) {

		// ?????°??£?¨?
		double dept = (double) baseDept; // ??????
		int ceilLength = 1000; // ????????????????????°???

		// n??±???????????????5%??????????????????(1000??????????????????????????¨??????)
		dept = dept / ceilLength;
		for (int i = 0; i < deptWeek; i++) {
			dept *= 1.05;
			dept = Math.ceil(dept);
		}
		dept *= ceilLength;

		return (int) dept;
	}

} Main public static void main(String[] args) {

		// ?¨??????\???????????±??°?????????
		Scanner stdId = new Scanner(System.in);
		int deptWeek = stdId.nextInt();

		// ??????
		int dept = 100000;

		// ????????????????????????
		System.out.println(String.valueOf(deptCalc(dept, deptWeek)));

	} main {

		// ?¨??????\???????????±??°?????????
		Scanner stdId = new Scanner(System.in);
		int deptWeek = stdId.nextInt();

		// ??????
		int dept = 100000;

		// ????????????????????????
		System.out.println(String.valueOf(deptCalc(dept, deptWeek)));

	} Scanner stdId = new Scanner(System.in); stdId new Scanner(System.in) int deptWeek = stdId.nextInt(); deptWeek stdId.nextInt() stdId.nextInt stdId int dept = 100000; dept 100000 System.out.println(String.valueOf(deptCalc(dept, deptWeek))) System.out.println System.out System System.out String.valueOf(deptCalc(dept, deptWeek)) String.valueOf String deptCalc(dept, deptWeek) deptCalc dept deptWeek String[] args args // ??????(baseMoney)??¨??????????????±??°(deptweek)?????????????????§???????????????????¨????
	public static int deptCalc(int baseDept, int deptWeek) {

		// ?????°??£?¨?
		double dept = (double) baseDept; // ??????
		int ceilLength = 1000; // ????????????????????°???

		// n??±???????????????5%??????????????????(1000??????????????????????????¨??????)
		dept = dept / ceilLength;
		for (int i = 0; i < deptWeek; i++) {
			dept *= 1.05;
			dept = Math.ceil(dept);
		}
		dept *= ceilLength;

		return (int) dept;
	} deptCalc {

		// ?????°??£?¨?
		double dept = (double) baseDept; // ??????
		int ceilLength = 1000; // ????????????????????°???

		// n??±???????????????5%??????????????????(1000??????????????????????????¨??????)
		dept = dept / ceilLength;
		for (int i = 0; i < deptWeek; i++) {
			dept *= 1.05;
			dept = Math.ceil(dept);
		}
		dept *= ceilLength;

		return (int) dept;
	} double dept = (double) baseDept; dept (double) baseDept int ceilLength = 1000; ceilLength 1000 dept = dept / ceilLength dept dept / ceilLength dept ceilLength for (int i = 0; i < deptWeek; i++) {
			dept *= 1.05;
			dept = Math.ceil(dept);
		} int i = 0; int i = 0; i 0 i < deptWeek i deptWeek i++ i++ i {
			dept *= 1.05;
			dept = Math.ceil(dept);
		} {
			dept *= 1.05;
			dept = Math.ceil(dept);
		} dept *= 1.05 dept 1.05 dept = Math.ceil(dept) dept Math.ceil(dept) Math.ceil Math dept dept *= ceilLength dept ceilLength return (int) dept; (int) dept int baseDept baseDept int deptWeek deptWeek public class Main {

	public static void main(String[] args) {

		// ?¨??????\???????????±??°?????????
		Scanner stdId = new Scanner(System.in);
		int deptWeek = stdId.nextInt();

		// ??????
		int dept = 100000;

		// ????????????????????????
		System.out.println(String.valueOf(deptCalc(dept, deptWeek)));

	}

	// ??????(baseMoney)??¨??????????????±??°(deptweek)?????????????????§???????????????????¨????
	public static int deptCalc(int baseDept, int deptWeek) {

		// ?????°??£?¨?
		double dept = (double) baseDept; // ??????
		int ceilLength = 1000; // ????????????????????°???

		// n??±???????????????5%??????????????????(1000??????????????????????????¨??????)
		dept = dept / ceilLength;
		for (int i = 0; i < deptWeek; i++) {
			dept *= 1.05;
			dept = Math.ceil(dept);
		}
		dept *= ceilLength;

		return (int) dept;
	}

} public class Main {

	public static void main(String[] args) {

		// ?¨??????\???????????±??°?????????
		Scanner stdId = new Scanner(System.in);
		int deptWeek = stdId.nextInt();

		// ??????
		int dept = 100000;

		// ????????????????????????
		System.out.println(String.valueOf(deptCalc(dept, deptWeek)));

	}

	// ??????(baseMoney)??¨??????????????±??°(deptweek)?????????????????§???????????????????¨????
	public static int deptCalc(int baseDept, int deptWeek) {

		// ?????°??£?¨?
		double dept = (double) baseDept; // ??????
		int ceilLength = 1000; // ????????????????????°???

		// n??±???????????????5%??????????????????(1000??????????????????????????¨??????)
		dept = dept / ceilLength;
		for (int i = 0; i < deptWeek; i++) {
			dept *= 1.05;
			dept = Math.ceil(dept);
		}
		dept *= ceilLength;

		return (int) dept;
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// ?¨??????\???????????±??°?????????
		Scanner stdId = new Scanner(System.in);
		int deptWeek = stdId.nextInt();

		// ??????
		int dept = 100000;

		// ????????????????????????
		System.out.println(String.valueOf(deptCalc(dept, deptWeek)));

	}

	// ??????(baseMoney)??¨??????????????±??°(deptweek)?????????????????§???????????????????¨????
	public static int deptCalc(int baseDept, int deptWeek) {

		// ?????°??£?¨?
		double dept = (double) baseDept; // ??????
		int ceilLength = 1000; // ????????????????????°???

		// n??±???????????????5%??????????????????(1000??????????????????????????¨??????)
		dept = dept / ceilLength;
		for (int i = 0; i < deptWeek; i++) {
			dept *= 1.05;
			dept = Math.ceil(dept);
		}
		dept *= ceilLength;

		return (int) dept;
	}

}