import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		//??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int N, debt;
		while ((str = br.readLine()) != null){
			N = Integer.parseInt(str);
			debt = 100000;
			for (int i = 0; i < N; i++) {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			}
			System.out.println(debt);
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		//??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int N, debt;
		while ((str = br.readLine()) != null){
			N = Integer.parseInt(str);
			debt = 100000;
			for (int i = 0; i < N; i++) {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			}
			System.out.println(debt);
		}
	}

} Main public static void main(String[] args) throws IOException {
		//??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int N, debt;
		while ((str = br.readLine()) != null){
			N = Integer.parseInt(str);
			debt = 100000;
			for (int i = 0; i < N; i++) {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			}
			System.out.println(debt);
		}
	} main {
		//??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int N, debt;
		while ((str = br.readLine()) != null){
			N = Integer.parseInt(str);
			debt = 100000;
			for (int i = 0; i < N; i++) {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			}
			System.out.println(debt);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str int N N debt; debt while ((str = br.readLine()) != null){
			N = Integer.parseInt(str);
			debt = 100000;
			for (int i = 0; i < N; i++) {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			}
			System.out.println(debt);
		} (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null {
			N = Integer.parseInt(str);
			debt = 100000;
			for (int i = 0; i < N; i++) {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			}
			System.out.println(debt);
		} N = Integer.parseInt(str) N Integer.parseInt(str) Integer.parseInt Integer str debt = 100000 debt 100000 for (int i = 0; i < N; i++) {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			} {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			} debt = debt  / 1000 * 1050 debt debt  / 1000 * 1050 debt  / 1000 debt 1000 1050 if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				} (debt % 1000) != 0 (debt % 1000) debt 1000 0 {
					debt = debt + (1000 - debt % 1000);
				} debt = debt + (1000 - debt % 1000) debt debt + (1000 - debt % 1000) debt (1000 - debt % 1000) 1000 debt % 1000 debt 1000 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) throws IOException {
		//??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int N, debt;
		while ((str = br.readLine()) != null){
			N = Integer.parseInt(str);
			debt = 100000;
			for (int i = 0; i < N; i++) {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			}
			System.out.println(debt);
		}
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		//??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int N, debt;
		while ((str = br.readLine()) != null){
			N = Integer.parseInt(str);
			debt = 100000;
			for (int i = 0; i < N; i++) {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			}
			System.out.println(debt);
		}
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		//??????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int N, debt;
		while ((str = br.readLine()) != null){
			N = Integer.parseInt(str);
			debt = 100000;
			for (int i = 0; i < N; i++) {
				debt = debt  / 1000 * 1050;
				if ((debt % 1000) != 0) {
					debt = debt + (1000 - debt % 1000);
				}
			}
			System.out.println(debt);
		}
	}

}