import java.io.*;

public class Main{
	public static void main(String argv[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int weeks = Integer.parseInt(line);
		float debt = 100000;
		for(int i=0; i<weeks; i++){
			debt *= 1.05f;
			if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			}
		}
		System.out.print(Integer.toString((int)debt)+"\n");
	}
} import java.io.*; io.* java public class Main{
	public static void main(String argv[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int weeks = Integer.parseInt(line);
		float debt = 100000;
		for(int i=0; i<weeks; i++){
			debt *= 1.05f;
			if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			}
		}
		System.out.print(Integer.toString((int)debt)+"\n");
	}
} Main public static void main(String argv[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int weeks = Integer.parseInt(line);
		float debt = 100000;
		for(int i=0; i<weeks; i++){
			debt *= 1.05f;
			if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			}
		}
		System.out.print(Integer.toString((int)debt)+"\n");
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int weeks = Integer.parseInt(line);
		float debt = 100000;
		for(int i=0; i<weeks; i++){
			debt *= 1.05f;
			if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			}
		}
		System.out.print(Integer.toString((int)debt)+"\n");
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br int weeks = Integer.parseInt(line); weeks Integer.parseInt(line) Integer.parseInt Integer line float debt = 100000; debt 100000 for(int i=0; i<weeks; i++){
			debt *= 1.05f;
			if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			}
		} int i=0; int i=0; i 0 i<weeks i weeks i++ i++ i {
			debt *= 1.05f;
			if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			}
		} {
			debt *= 1.05f;
			if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			}
		} debt *= 1.05f debt 1.05f if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			} (debt % 1000) > 0.0 (debt % 1000) debt 1000 0.0 {
				debt = debt+1000-debt%1000;
			} debt = debt+1000-debt%1000 debt debt+1000-debt%1000 debt+1000 debt 1000 debt%1000 debt 1000 System.out.print(Integer.toString((int)debt)+"\n") System.out.print System.out System System.out Integer.toString((int)debt)+"\n" Integer.toString((int)debt) Integer.toString Integer (int)debt "\n" String argv[] argv public class Main{
	public static void main(String argv[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int weeks = Integer.parseInt(line);
		float debt = 100000;
		for(int i=0; i<weeks; i++){
			debt *= 1.05f;
			if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			}
		}
		System.out.print(Integer.toString((int)debt)+"\n");
	}
} public class Main{
	public static void main(String argv[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int weeks = Integer.parseInt(line);
		float debt = 100000;
		for(int i=0; i<weeks; i++){
			debt *= 1.05f;
			if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			}
		}
		System.out.print(Integer.toString((int)debt)+"\n");
	}
} Main
import java.io.*;

public class Main{
	public static void main(String argv[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int weeks = Integer.parseInt(line);
		float debt = 100000;
		for(int i=0; i<weeks; i++){
			debt *= 1.05f;
			if((debt % 1000) > 0.0){
				debt = debt+1000-debt%1000;
			}
		}
		System.out.print(Integer.toString((int)debt)+"\n");
	}
}