import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int debt = 100000;
		while(n-- != 0) {
			debt += debt*0.05;
			int a = debt%1000;
			if(a != 0) debt += 1000-a;
		}
		System.out.println(debt);
	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int debt = 100000;
		while(n-- != 0) {
			debt += debt*0.05;
			int a = debt%1000;
			if(a != 0) debt += 1000-a;
		}
		System.out.println(debt);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int debt = 100000;
		while(n-- != 0) {
			debt += debt*0.05;
			int a = debt%1000;
			if(a != 0) debt += 1000-a;
		}
		System.out.println(debt);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int debt = 100000;
		while(n-- != 0) {
			debt += debt*0.05;
			int a = debt%1000;
			if(a != 0) debt += 1000-a;
		}
		System.out.println(debt);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int debt = 100000; debt 100000 while(n-- != 0) {
			debt += debt*0.05;
			int a = debt%1000;
			if(a != 0) debt += 1000-a;
		} n-- != 0 n-- n 0 {
			debt += debt*0.05;
			int a = debt%1000;
			if(a != 0) debt += 1000-a;
		} debt += debt*0.05 debt debt*0.05 debt 0.05 int a = debt%1000; a debt%1000 debt 1000 if(a != 0) debt += 1000-a; a != 0 a 0 debt += 1000-a debt 1000-a 1000 a System.out.println(debt) System.out.println System.out System System.out debt String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int debt = 100000;
		while(n-- != 0) {
			debt += debt*0.05;
			int a = debt%1000;
			if(a != 0) debt += 1000-a;
		}
		System.out.println(debt);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int debt = 100000;
		while(n-- != 0) {
			debt += debt*0.05;
			int a = debt%1000;
			if(a != 0) debt += 1000-a;
		}
		System.out.println(debt);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int debt = 100000;
		while(n-- != 0) {
			debt += debt*0.05;
			int a = debt%1000;
			if(a != 0) debt += 1000-a;
		}
		System.out.println(debt);
	}
}

