import java.util.Scanner;

public class Main
{
	private static int calcDebt(int debt,int n)
	{
		if(n==0){
			return debt;
		}else{
			int nextdebt=(int)(debt*1.05);
			int rest=nextdebt%1000;
			if(rest==0){
				return calcDebt(nextdebt,n-1);
			}else{
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			}
		}
	}
	
	public static void main(String[] args)
	{
		int n;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		scan.close();
		System.out.println(calcDebt(100000,n));
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	private static int calcDebt(int debt,int n)
	{
		if(n==0){
			return debt;
		}else{
			int nextdebt=(int)(debt*1.05);
			int rest=nextdebt%1000;
			if(rest==0){
				return calcDebt(nextdebt,n-1);
			}else{
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			}
		}
	}
	
	public static void main(String[] args)
	{
		int n;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		scan.close();
		System.out.println(calcDebt(100000,n));
	}
} Main private static int calcDebt(int debt,int n)
	{
		if(n==0){
			return debt;
		}else{
			int nextdebt=(int)(debt*1.05);
			int rest=nextdebt%1000;
			if(rest==0){
				return calcDebt(nextdebt,n-1);
			}else{
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			}
		}
	} calcDebt {
		if(n==0){
			return debt;
		}else{
			int nextdebt=(int)(debt*1.05);
			int rest=nextdebt%1000;
			if(rest==0){
				return calcDebt(nextdebt,n-1);
			}else{
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			}
		}
	} if(n==0){
			return debt;
		}else{
			int nextdebt=(int)(debt*1.05);
			int rest=nextdebt%1000;
			if(rest==0){
				return calcDebt(nextdebt,n-1);
			}else{
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			}
		} n==0 n 0 {
			return debt;
		} return debt; debt {
			int nextdebt=(int)(debt*1.05);
			int rest=nextdebt%1000;
			if(rest==0){
				return calcDebt(nextdebt,n-1);
			}else{
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			}
		} int nextdebt=(int)(debt*1.05); nextdebt (int)(debt*1.05) debt 1.05 int rest=nextdebt%1000; rest nextdebt%1000 nextdebt 1000 if(rest==0){
				return calcDebt(nextdebt,n-1);
			}else{
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			} rest==0 rest 0 {
				return calcDebt(nextdebt,n-1);
			} return calcDebt(nextdebt,n-1); calcDebt(nextdebt,n-1) calcDebt nextdebt n-1 n 1 {
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			} return calcDebt((nextdebt/1000)*1000+1000,n-1); calcDebt((nextdebt/1000)*1000+1000,n-1) calcDebt (nextdebt/1000)*1000+1000 (nextdebt/1000)*1000 (nextdebt/1000) nextdebt 1000 1000 1000 n-1 n 1 int debt debt int n n public static void main(String[] args)
	{
		int n;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		scan.close();
		System.out.println(calcDebt(100000,n));
	} main {
		int n;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		scan.close();
		System.out.println(calcDebt(100000,n));
	} int n; n Scanner scan=new Scanner(System.in); scan new Scanner(System.in) n=scan.nextInt() n scan.nextInt() scan.nextInt scan scan.close() scan.close scan System.out.println(calcDebt(100000,n)) System.out.println System.out System System.out calcDebt(100000,n) calcDebt 100000 n String[] args args public class Main
{
	private static int calcDebt(int debt,int n)
	{
		if(n==0){
			return debt;
		}else{
			int nextdebt=(int)(debt*1.05);
			int rest=nextdebt%1000;
			if(rest==0){
				return calcDebt(nextdebt,n-1);
			}else{
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			}
		}
	}
	
	public static void main(String[] args)
	{
		int n;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		scan.close();
		System.out.println(calcDebt(100000,n));
	}
} public class Main
{
	private static int calcDebt(int debt,int n)
	{
		if(n==0){
			return debt;
		}else{
			int nextdebt=(int)(debt*1.05);
			int rest=nextdebt%1000;
			if(rest==0){
				return calcDebt(nextdebt,n-1);
			}else{
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			}
		}
	}
	
	public static void main(String[] args)
	{
		int n;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		scan.close();
		System.out.println(calcDebt(100000,n));
	}
} Main
import java.util.Scanner;

public class Main
{
	private static int calcDebt(int debt,int n)
	{
		if(n==0){
			return debt;
		}else{
			int nextdebt=(int)(debt*1.05);
			int rest=nextdebt%1000;
			if(rest==0){
				return calcDebt(nextdebt,n-1);
			}else{
				return calcDebt((nextdebt/1000)*1000+1000,n-1);
			}
		}
	}
	
	public static void main(String[] args)
	{
		int n;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		scan.close();
		System.out.println(calcDebt(100000,n));
	}
}