import java.util.Scanner;

class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int ans = 100000;
		int temp;
		
		for(int i = 0; i < n; i++){
			ans *= 1.05;
			temp = ans / 1000 * 1000;
			if(ans != temp)ans = temp + 1000;
		}
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int ans = 100000;
		int temp;
		
		for(int i = 0; i < n; i++){
			ans *= 1.05;
			temp = ans / 1000 * 1000;
			if(ans != temp)ans = temp + 1000;
		}
		System.out.println(ans);
	}
} Main public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int ans = 100000;
		int temp;
		
		for(int i = 0; i < n; i++){
			ans *= 1.05;
			temp = ans / 1000 * 1000;
			if(ans != temp)ans = temp + 1000;
		}
		System.out.println(ans);
	} main {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int ans = 100000;
		int temp;
		
		for(int i = 0; i < n; i++){
			ans *= 1.05;
			temp = ans / 1000 * 1000;
			if(ans != temp)ans = temp + 1000;
		}
		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int ans = 100000; ans 100000 int temp; temp for(int i = 0; i < n; i++){
			ans *= 1.05;
			temp = ans / 1000 * 1000;
			if(ans != temp)ans = temp + 1000;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			ans *= 1.05;
			temp = ans / 1000 * 1000;
			if(ans != temp)ans = temp + 1000;
		} {
			ans *= 1.05;
			temp = ans / 1000 * 1000;
			if(ans != temp)ans = temp + 1000;
		} ans *= 1.05 ans 1.05 temp = ans / 1000 * 1000 temp ans / 1000 * 1000 ans / 1000 ans 1000 1000 if(ans != temp)ans = temp + 1000; ans != temp ans temp ans = temp + 1000 ans temp + 1000 temp 1000 System.out.println(ans) System.out.println System.out System System.out ans String args[] args
import java.util.Scanner;

class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int ans = 100000;
		int temp;
		
		for(int i = 0; i < n; i++){
			ans *= 1.05;
			temp = ans / 1000 * 1000;
			if(ans != temp)ans = temp + 1000;
		}
		System.out.println(ans);
	}
}