import java.io.*;
public class Main {
	
	public static void main(String[] args) throws IOException {
		
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int sum = 100000;
		double debt = sum * 0.05;
		
		for (int i = 0; i < n; i++) {
			sum += debt;
			if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			}
			debt = sum * 0.05;
		}
		System.out.println(sum);
	}

} import java.io.*; io.* java public class Main {
	
	public static void main(String[] args) throws IOException {
		
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int sum = 100000;
		double debt = sum * 0.05;
		
		for (int i = 0; i < n; i++) {
			sum += debt;
			if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			}
			debt = sum * 0.05;
		}
		System.out.println(sum);
	}

} Main public static void main(String[] args) throws IOException {
		
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int sum = 100000;
		double debt = sum * 0.05;
		
		for (int i = 0; i < n; i++) {
			sum += debt;
			if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			}
			debt = sum * 0.05;
		}
		System.out.println(sum);
	} main {
		
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int sum = 100000;
		double debt = sum * 0.05;
		
		for (int i = 0; i < n; i++) {
			sum += debt;
			if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			}
			debt = sum * 0.05;
		}
		System.out.println(sum);
	} BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int sum = 100000; sum 100000 double debt = sum * 0.05; debt sum * 0.05 sum 0.05 for (int i = 0; i < n; i++) {
			sum += debt;
			if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			}
			debt = sum * 0.05;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			sum += debt;
			if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			}
			debt = sum * 0.05;
		} {
			sum += debt;
			if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			}
			debt = sum * 0.05;
		} sum += debt sum debt if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			} sum % 1000 != 0 sum % 1000 sum 1000 0 {
				sum -= sum % 1000;
				sum += 1000;
			} sum -= sum % 1000 sum sum % 1000 sum 1000 sum += 1000 sum 1000 debt = sum * 0.05 debt sum * 0.05 sum 0.05 System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {
	
	public static void main(String[] args) throws IOException {
		
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int sum = 100000;
		double debt = sum * 0.05;
		
		for (int i = 0; i < n; i++) {
			sum += debt;
			if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			}
			debt = sum * 0.05;
		}
		System.out.println(sum);
	}

} public class Main {
	
	public static void main(String[] args) throws IOException {
		
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int sum = 100000;
		double debt = sum * 0.05;
		
		for (int i = 0; i < n; i++) {
			sum += debt;
			if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			}
			debt = sum * 0.05;
		}
		System.out.println(sum);
	}

} Main
import java.io.*;
public class Main {
	
	public static void main(String[] args) throws IOException {
		
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		int sum = 100000;
		double debt = sum * 0.05;
		
		for (int i = 0; i < n; i++) {
			sum += debt;
			if (sum % 1000 != 0) {
				sum -= sum % 1000;
				sum += 1000;
			}
			debt = sum * 0.05;
		}
		System.out.println(sum);
	}

}