import java.io.*;

class Main {
	public static void main(String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			String buf = br.readLine();
			int n = Integer.parseInt(buf);

			long money = 100000;
			for (int i=0;i<n;i++) {
				money = (money/100)*105;
				if (money%1000>0)
					money = money-money%1000+1000;
			}
			System.out.println(money);
		} catch (Exception e) {
			System.out.println("Exception!");
		}
	}
} import java.io.*; io.* java class Main {
	public static void main(String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			String buf = br.readLine();
			int n = Integer.parseInt(buf);

			long money = 100000;
			for (int i=0;i<n;i++) {
				money = (money/100)*105;
				if (money%1000>0)
					money = money-money%1000+1000;
			}
			System.out.println(money);
		} catch (Exception e) {
			System.out.println("Exception!");
		}
	}
} Main public static void main(String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			String buf = br.readLine();
			int n = Integer.parseInt(buf);

			long money = 100000;
			for (int i=0;i<n;i++) {
				money = (money/100)*105;
				if (money%1000>0)
					money = money-money%1000+1000;
			}
			System.out.println(money);
		} catch (Exception e) {
			System.out.println("Exception!");
		}
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			String buf = br.readLine();
			int n = Integer.parseInt(buf);

			long money = 100000;
			for (int i=0;i<n;i++) {
				money = (money/100)*105;
				if (money%1000>0)
					money = money-money%1000+1000;
			}
			System.out.println(money);
		} catch (Exception e) {
			System.out.println("Exception!");
		}
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) try {
			String buf = br.readLine();
			int n = Integer.parseInt(buf);

			long money = 100000;
			for (int i=0;i<n;i++) {
				money = (money/100)*105;
				if (money%1000>0)
					money = money-money%1000+1000;
			}
			System.out.println(money);
		} catch (Exception e) {
			System.out.println("Exception!");
		} catch (Exception e) {
			System.out.println("Exception!");
		} Exception e {
			System.out.println("Exception!");
		} System.out.println("Exception!") System.out.println System.out System System.out "Exception!" {
			String buf = br.readLine();
			int n = Integer.parseInt(buf);

			long money = 100000;
			for (int i=0;i<n;i++) {
				money = (money/100)*105;
				if (money%1000>0)
					money = money-money%1000+1000;
			}
			System.out.println(money);
		} String buf = br.readLine(); buf br.readLine() br.readLine br int n = Integer.parseInt(buf); n Integer.parseInt(buf) Integer.parseInt Integer buf long money = 100000; money 100000 for (int i=0;i<n;i++) {
				money = (money/100)*105;
				if (money%1000>0)
					money = money-money%1000+1000;
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				money = (money/100)*105;
				if (money%1000>0)
					money = money-money%1000+1000;
			} {
				money = (money/100)*105;
				if (money%1000>0)
					money = money-money%1000+1000;
			} money = (money/100)*105 money (money/100)*105 (money/100) money 100 105 if (money%1000>0)
					money = money-money%1000+1000; money%1000>0 money%1000 money 1000 0 money = money-money%1000+1000 money money-money%1000+1000 money-money%1000 money money%1000 money 1000 1000 System.out.println(money) System.out.println System.out System System.out money String args[] args
import java.io.*;

class Main {
	public static void main(String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			String buf = br.readLine();
			int n = Integer.parseInt(buf);

			long money = 100000;
			for (int i=0;i<n;i++) {
				money = (money/100)*105;
				if (money%1000>0)
					money = money-money%1000+1000;
			}
			System.out.println(money);
		} catch (Exception e) {
			System.out.println("Exception!");
		}
	}
}