import java.io.*;
import java.util.*;
public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		int in=Integer.parseInt(s);
		int out=100000;
		for(int i=0;i<in;i++){
			out*=1.05;
			if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			}
		}
		System.out.println(out);
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		int in=Integer.parseInt(s);
		int out=100000;
		for(int i=0;i<in;i++){
			out*=1.05;
			if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			}
		}
		System.out.println(out);
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		int in=Integer.parseInt(s);
		int out=100000;
		for(int i=0;i<in;i++){
			out*=1.05;
			if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			}
		}
		System.out.println(out);
	} main {
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		int in=Integer.parseInt(s);
		int out=100000;
		for(int i=0;i<in;i++){
			out*=1.05;
			if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			}
		}
		System.out.println(out);
	} BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String s=reader.readLine(); s reader.readLine() reader.readLine reader int in=Integer.parseInt(s); in Integer.parseInt(s) Integer.parseInt Integer s int out=100000; out 100000 for(int i=0;i<in;i++){
			out*=1.05;
			if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			}
		} int i=0; int i=0; i 0 i<in i in i++ i++ i {
			out*=1.05;
			if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			}
		} {
			out*=1.05;
			if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			}
		} out*=1.05 out 1.05 if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			} out%1000!=0 out%1000 out 1000 0 {
				out-=out%1000;
				out+=1000;
			} out-=out%1000 out out%1000 out 1000 out+=1000 out 1000 System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		int in=Integer.parseInt(s);
		int out=100000;
		for(int i=0;i<in;i++){
			out*=1.05;
			if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			}
		}
		System.out.println(out);
	}
} public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		int in=Integer.parseInt(s);
		int out=100000;
		for(int i=0;i<in;i++){
			out*=1.05;
			if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			}
		}
		System.out.println(out);
	}
} Main
import java.io.*;
import java.util.*;
public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		int in=Integer.parseInt(s);
		int out=100000;
		for(int i=0;i<in;i++){
			out*=1.05;
			if(out%1000!=0){
				out-=out%1000;
				out+=1000;
			}
		}
		System.out.println(out);
	}
}