import java.util.Scanner;


class Main {

	public static void main(String[] args){
		double debt = 100000;
		double rate = 1.05;

		Scanner in = new Scanner(System.in);
		int numWeeks = in.nextInt();
		
		for (int i=1; i<=numWeeks; i++){
			debt = debt * rate;
			if(debt%1000 == 0){
				//do nothing
			} else {
				debt = (debt - (debt%1000)) + 1000;
			}
		}
		System.out.println((int) debt);
	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args){
		double debt = 100000;
		double rate = 1.05;

		Scanner in = new Scanner(System.in);
		int numWeeks = in.nextInt();
		
		for (int i=1; i<=numWeeks; i++){
			debt = debt * rate;
			if(debt%1000 == 0){
				//do nothing
			} else {
				debt = (debt - (debt%1000)) + 1000;
			}
		}
		System.out.println((int) debt);
	}
} Main public static void main(String[] args){
		double debt = 100000;
		double rate = 1.05;

		Scanner in = new Scanner(System.in);
		int numWeeks = in.nextInt();
		
		for (int i=1; i<=numWeeks; i++){
			debt = debt * rate;
			if(debt%1000 == 0){
				//do nothing
			} else {
				debt = (debt - (debt%1000)) + 1000;
			}
		}
		System.out.println((int) debt);
	} main {
		double debt = 100000;
		double rate = 1.05;

		Scanner in = new Scanner(System.in);
		int numWeeks = in.nextInt();
		
		for (int i=1; i<=numWeeks; i++){
			debt = debt * rate;
			if(debt%1000 == 0){
				//do nothing
			} else {
				debt = (debt - (debt%1000)) + 1000;
			}
		}
		System.out.println((int) debt);
	} double debt = 100000; debt 100000 double rate = 1.05; rate 1.05 Scanner in = new Scanner(System.in); in new Scanner(System.in) int numWeeks = in.nextInt(); numWeeks in.nextInt() in.nextInt in for (int i=1; i<=numWeeks; i++){
			debt = debt * rate;
			if(debt%1000 == 0){
				//do nothing
			} else {
				debt = (debt - (debt%1000)) + 1000;
			}
		} int i=1; int i=1; i 1 i<=numWeeks i numWeeks i++ i++ i {
			debt = debt * rate;
			if(debt%1000 == 0){
				//do nothing
			} else {
				debt = (debt - (debt%1000)) + 1000;
			}
		} {
			debt = debt * rate;
			if(debt%1000 == 0){
				//do nothing
			} else {
				debt = (debt - (debt%1000)) + 1000;
			}
		} debt = debt * rate debt debt * rate debt rate if(debt%1000 == 0){
				//do nothing
			} else {
				debt = (debt - (debt%1000)) + 1000;
			} debt%1000 == 0 debt%1000 debt 1000 0 {
				//do nothing
			} {
				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((int) debt) System.out.println System.out System System.out (int) debt String[] args args
import java.util.Scanner;


class Main {

	public static void main(String[] args){
		double debt = 100000;
		double rate = 1.05;

		Scanner in = new Scanner(System.in);
		int numWeeks = in.nextInt();
		
		for (int i=1; i<=numWeeks; i++){
			debt = debt * rate;
			if(debt%1000 == 0){
				//do nothing
			} else {
				debt = (debt - (debt%1000)) + 1000;
			}
		}
		System.out.println((int) debt);
	}
}