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

public class Main {

	public static void main(String[] args) throws IOException {
		// 宣言
		double money = 100000;
		final double rate = 1.05;
		int amari = 0;

		// 文字列の入力
		 BufferedReader input = new BufferedReader(new
		 InputStreamReader(System.in), 1);
		 int week = Integer.parseInt(input.readLine());

		for (int i = 1; i <= week; i++) {
			// 5%の利子を加算し、1000円未満を切り上げる
			money = money * rate;
			amari = (int) money % 1000;
			if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			}
		}
		System.out.println((int)money);
	}
} 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 {
		// 宣言
		double money = 100000;
		final double rate = 1.05;
		int amari = 0;

		// 文字列の入力
		 BufferedReader input = new BufferedReader(new
		 InputStreamReader(System.in), 1);
		 int week = Integer.parseInt(input.readLine());

		for (int i = 1; i <= week; i++) {
			// 5%の利子を加算し、1000円未満を切り上げる
			money = money * rate;
			amari = (int) money % 1000;
			if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			}
		}
		System.out.println((int)money);
	}
} Main public static void main(String[] args) throws IOException {
		// 宣言
		double money = 100000;
		final double rate = 1.05;
		int amari = 0;

		// 文字列の入力
		 BufferedReader input = new BufferedReader(new
		 InputStreamReader(System.in), 1);
		 int week = Integer.parseInt(input.readLine());

		for (int i = 1; i <= week; i++) {
			// 5%の利子を加算し、1000円未満を切り上げる
			money = money * rate;
			amari = (int) money % 1000;
			if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			}
		}
		System.out.println((int)money);
	} main {
		// 宣言
		double money = 100000;
		final double rate = 1.05;
		int amari = 0;

		// 文字列の入力
		 BufferedReader input = new BufferedReader(new
		 InputStreamReader(System.in), 1);
		 int week = Integer.parseInt(input.readLine());

		for (int i = 1; i <= week; i++) {
			// 5%の利子を加算し、1000円未満を切り上げる
			money = money * rate;
			amari = (int) money % 1000;
			if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			}
		}
		System.out.println((int)money);
	} double money = 100000; money 100000 final double rate = 1.05; rate 1.05 int amari = 0; amari 0 BufferedReader input = new BufferedReader(new
		 InputStreamReader(System.in), 1); input new BufferedReader(new
		 InputStreamReader(System.in), 1) int week = Integer.parseInt(input.readLine()); week Integer.parseInt(input.readLine()) Integer.parseInt Integer input.readLine() input.readLine input for (int i = 1; i <= week; i++) {
			// 5%の利子を加算し、1000円未満を切り上げる
			money = money * rate;
			amari = (int) money % 1000;
			if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			}
		} int i = 1; int i = 1; i 1 i <= week i week i++ i++ i {
			// 5%の利子を加算し、1000円未満を切り上げる
			money = money * rate;
			amari = (int) money % 1000;
			if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			}
		} {
			// 5%の利子を加算し、1000円未満を切り上げる
			money = money * rate;
			amari = (int) money % 1000;
			if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			}
		} money = money * rate money money * rate money rate amari = (int) money % 1000 amari (int) money % 1000 (int) money 1000 if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			} amari != 0 amari 0 {
				money = money + 1000;
				money = money - amari;
			} money = money + 1000 money money + 1000 money 1000 money = money - amari money money - amari money amari System.out.println((int)money) System.out.println System.out System System.out (int)money String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		// 宣言
		double money = 100000;
		final double rate = 1.05;
		int amari = 0;

		// 文字列の入力
		 BufferedReader input = new BufferedReader(new
		 InputStreamReader(System.in), 1);
		 int week = Integer.parseInt(input.readLine());

		for (int i = 1; i <= week; i++) {
			// 5%の利子を加算し、1000円未満を切り上げる
			money = money * rate;
			amari = (int) money % 1000;
			if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			}
		}
		System.out.println((int)money);
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		// 宣言
		double money = 100000;
		final double rate = 1.05;
		int amari = 0;

		// 文字列の入力
		 BufferedReader input = new BufferedReader(new
		 InputStreamReader(System.in), 1);
		 int week = Integer.parseInt(input.readLine());

		for (int i = 1; i <= week; i++) {
			// 5%の利子を加算し、1000円未満を切り上げる
			money = money * rate;
			amari = (int) money % 1000;
			if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			}
		}
		System.out.println((int)money);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// 宣言
		double money = 100000;
		final double rate = 1.05;
		int amari = 0;

		// 文字列の入力
		 BufferedReader input = new BufferedReader(new
		 InputStreamReader(System.in), 1);
		 int week = Integer.parseInt(input.readLine());

		for (int i = 1; i <= week; i++) {
			// 5%の利子を加算し、1000円未満を切り上げる
			money = money * rate;
			amari = (int) money % 1000;
			if (amari != 0) {
				money = money + 1000;
				money = money - amari;
			}
		}
		System.out.println((int)money);
	}
}