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 = br.readLine();

		double n = Double.parseDouble(str);
		double x = 100000;
		double r = 0;

		for(int i=0; i<n; i++){
			x *= 1.05;
			r = x%1000;
			if(r != 0)
				x = x + 1000 - r;
		}



		System.out.println((int)x);

	}
} 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 = br.readLine();

		double n = Double.parseDouble(str);
		double x = 100000;
		double r = 0;

		for(int i=0; i<n; i++){
			x *= 1.05;
			r = x%1000;
			if(r != 0)
				x = x + 1000 - r;
		}



		System.out.println((int)x);

	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		double n = Double.parseDouble(str);
		double x = 100000;
		double r = 0;

		for(int i=0; i<n; i++){
			x *= 1.05;
			r = x%1000;
			if(r != 0)
				x = x + 1000 - r;
		}



		System.out.println((int)x);

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		double n = Double.parseDouble(str);
		double x = 100000;
		double r = 0;

		for(int i=0; i<n; i++){
			x *= 1.05;
			r = x%1000;
			if(r != 0)
				x = x + 1000 - r;
		}



		System.out.println((int)x);

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br double n = Double.parseDouble(str); n Double.parseDouble(str) Double.parseDouble Double str double x = 100000; x 100000 double r = 0; r 0 for(int i=0; i<n; i++){
			x *= 1.05;
			r = x%1000;
			if(r != 0)
				x = x + 1000 - r;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			x *= 1.05;
			r = x%1000;
			if(r != 0)
				x = x + 1000 - r;
		} {
			x *= 1.05;
			r = x%1000;
			if(r != 0)
				x = x + 1000 - r;
		} x *= 1.05 x 1.05 r = x%1000 r x%1000 x 1000 if(r != 0)
				x = x + 1000 - r; r != 0 r 0 x = x + 1000 - r x x + 1000 - r x + 1000 x 1000 r System.out.println((int)x) System.out.println System.out System System.out (int)x String[] args args public class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		double n = Double.parseDouble(str);
		double x = 100000;
		double r = 0;

		for(int i=0; i<n; i++){
			x *= 1.05;
			r = x%1000;
			if(r != 0)
				x = x + 1000 - r;
		}



		System.out.println((int)x);

	}
} public class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		double n = Double.parseDouble(str);
		double x = 100000;
		double r = 0;

		for(int i=0; i<n; i++){
			x *= 1.05;
			r = x%1000;
			if(r != 0)
				x = x + 1000 - r;
		}



		System.out.println((int)x);

	}
} 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 = br.readLine();

		double n = Double.parseDouble(str);
		double x = 100000;
		double r = 0;

		for(int i=0; i<n; i++){
			x *= 1.05;
			r = x%1000;
			if(r != 0)
				x = x + 1000 - r;
		}



		System.out.println((int)x);

	}
}