import java.io.*;

class Main {
	public static void main(String args[]) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int n, money = 100000;
			n = Integer.parseInt(reader.readLine());
			for(int i = 0;i < n;i++) {
				money = money + (money/20);
				int x = money%10, y = money%100/10, z = money%1000/100;
				if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100));
			}
			System.out.println(money);
		}
		catch(IOException e) {
			System.out.println(e);
		}
	}
} import java.io.*; io.* java class Main {
	public static void main(String args[]) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int n, money = 100000;
			n = Integer.parseInt(reader.readLine());
			for(int i = 0;i < n;i++) {
				money = money + (money/20);
				int x = money%10, y = money%100/10, z = money%1000/100;
				if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100));
			}
			System.out.println(money);
		}
		catch(IOException e) {
			System.out.println(e);
		}
	}
} Main public static void main(String args[]) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int n, money = 100000;
			n = Integer.parseInt(reader.readLine());
			for(int i = 0;i < n;i++) {
				money = money + (money/20);
				int x = money%10, y = money%100/10, z = money%1000/100;
				if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100));
			}
			System.out.println(money);
		}
		catch(IOException e) {
			System.out.println(e);
		}
	} main {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int n, money = 100000;
			n = Integer.parseInt(reader.readLine());
			for(int i = 0;i < n;i++) {
				money = money + (money/20);
				int x = money%10, y = money%100/10, z = money%1000/100;
				if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100));
			}
			System.out.println(money);
		}
		catch(IOException e) {
			System.out.println(e);
		}
	} try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int n, money = 100000;
			n = Integer.parseInt(reader.readLine());
			for(int i = 0;i < n;i++) {
				money = money + (money/20);
				int x = money%10, y = money%100/10, z = money%1000/100;
				if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100));
			}
			System.out.println(money);
		}
		catch(IOException e) {
			System.out.println(e);
		} catch(IOException e) {
			System.out.println(e);
		} IOException e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int n, money = 100000;
			n = Integer.parseInt(reader.readLine());
			for(int i = 0;i < n;i++) {
				money = money + (money/20);
				int x = money%10, y = money%100/10, z = money%1000/100;
				if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100));
			}
			System.out.println(money);
		} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int n n money = 100000; money 100000 n = Integer.parseInt(reader.readLine()) n Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader for(int i = 0;i < n;i++) {
				money = money + (money/20);
				int x = money%10, y = money%100/10, z = money%1000/100;
				if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100));
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				money = money + (money/20);
				int x = money%10, y = money%100/10, z = money%1000/100;
				if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100));
			} {
				money = money + (money/20);
				int x = money%10, y = money%100/10, z = money%1000/100;
				if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100));
			} money = money + (money/20) money money + (money/20) money (money/20) money 20 int x = money%10 x money%10 money 10 y = money%100/10 y money%100/10 money%100 money 100 10 z = money%1000/100; z money%1000/100 money%1000 money 1000 100 if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100)); x != 0 || y != 0 || z != 0 x != 0 || y != 0 || z != 0 x != 0 x 0 y != 0 y 0 z != 0 z 0 money+=(1000-(x+y*10+z*100)) money (1000-(x+y*10+z*100)) 1000 (x+y*10+z*100) x+y*10+z*100 x y*10 y 10 z*100 z 100 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[]) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int n, money = 100000;
			n = Integer.parseInt(reader.readLine());
			for(int i = 0;i < n;i++) {
				money = money + (money/20);
				int x = money%10, y = money%100/10, z = money%1000/100;
				if(x != 0 || y != 0 || z != 0)
					money+=(1000-(x+y*10+z*100));
			}
			System.out.println(money);
		}
		catch(IOException e) {
			System.out.println(e);
		}
	}
}