import java.io.*;

import java.util.*;





class Main{

		
		public static void main(String args[]) throws IOException{

			ArrayList<Double> equ = new ArrayList<Double>();

			Scanner scan = new Scanner(System.in);

			int n = 0;

			

			while(scan.hasNext()){

					String str1 = scan.next();

					n = Integer.valueOf(str1).intValue();

			}

		
		int money = 100000;
		int check,surp;


		for(int i = n;i>0;i--){	

			
			check = (int)(money * 1.05);
			surp = check%1000;
			if(surp == 0)money = check;
			else{
				money = check-surp+1000;
			}
		}
		System.out.println(money);

	}
		

} import java.io.*; io.* java import java.util.*; util.* java class Main{

		
		public static void main(String args[]) throws IOException{

			ArrayList<Double> equ = new ArrayList<Double>();

			Scanner scan = new Scanner(System.in);

			int n = 0;

			

			while(scan.hasNext()){

					String str1 = scan.next();

					n = Integer.valueOf(str1).intValue();

			}

		
		int money = 100000;
		int check,surp;


		for(int i = n;i>0;i--){	

			
			check = (int)(money * 1.05);
			surp = check%1000;
			if(surp == 0)money = check;
			else{
				money = check-surp+1000;
			}
		}
		System.out.println(money);

	}
		

} Main public static void main(String args[]) throws IOException{

			ArrayList<Double> equ = new ArrayList<Double>();

			Scanner scan = new Scanner(System.in);

			int n = 0;

			

			while(scan.hasNext()){

					String str1 = scan.next();

					n = Integer.valueOf(str1).intValue();

			}

		
		int money = 100000;
		int check,surp;


		for(int i = n;i>0;i--){	

			
			check = (int)(money * 1.05);
			surp = check%1000;
			if(surp == 0)money = check;
			else{
				money = check-surp+1000;
			}
		}
		System.out.println(money);

	} main {

			ArrayList<Double> equ = new ArrayList<Double>();

			Scanner scan = new Scanner(System.in);

			int n = 0;

			

			while(scan.hasNext()){

					String str1 = scan.next();

					n = Integer.valueOf(str1).intValue();

			}

		
		int money = 100000;
		int check,surp;


		for(int i = n;i>0;i--){	

			
			check = (int)(money * 1.05);
			surp = check%1000;
			if(surp == 0)money = check;
			else{
				money = check-surp+1000;
			}
		}
		System.out.println(money);

	} ArrayList<Double> equ = new ArrayList<Double>(); equ new ArrayList<Double>() Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = 0; n 0 while(scan.hasNext()){

					String str1 = scan.next();

					n = Integer.valueOf(str1).intValue();

			} scan.hasNext() scan.hasNext scan {

					String str1 = scan.next();

					n = Integer.valueOf(str1).intValue();

			} String str1 = scan.next(); str1 scan.next() scan.next scan n = Integer.valueOf(str1).intValue() n Integer.valueOf(str1).intValue() Integer.valueOf(str1).intValue Integer.valueOf(str1) Integer.valueOf Integer str1 int money = 100000; money 100000 int check check surp; surp for(int i = n;i>0;i--){	

			
			check = (int)(money * 1.05);
			surp = check%1000;
			if(surp == 0)money = check;
			else{
				money = check-surp+1000;
			}
		} int i = n; int i = n; i n i>0 i 0 i-- i-- i {	

			
			check = (int)(money * 1.05);
			surp = check%1000;
			if(surp == 0)money = check;
			else{
				money = check-surp+1000;
			}
		} {	

			
			check = (int)(money * 1.05);
			surp = check%1000;
			if(surp == 0)money = check;
			else{
				money = check-surp+1000;
			}
		} check = (int)(money * 1.05) check (int)(money * 1.05) money 1.05 surp = check%1000 surp check%1000 check 1000 if(surp == 0)money = check;
			else{
				money = check-surp+1000;
			} surp == 0 surp 0 money = check money check {
				money = check-surp+1000;
			} money = check-surp+1000 money check-surp+1000 check-surp check surp 1000 System.out.println(money) System.out.println System.out System System.out money String args[] args
import java.io.*;

import java.util.*;





class Main{

		
		public static void main(String args[]) throws IOException{

			ArrayList<Double> equ = new ArrayList<Double>();

			Scanner scan = new Scanner(System.in);

			int n = 0;

			

			while(scan.hasNext()){

					String str1 = scan.next();

					n = Integer.valueOf(str1).intValue();

			}

		
		int money = 100000;
		int check,surp;


		for(int i = n;i>0;i--){	

			
			check = (int)(money * 1.05);
			surp = check%1000;
			if(surp == 0)money = check;
			else{
				money = check-surp+1000;
			}
		}
		System.out.println(money);

	}
		

}