import java.util.*;

class Main{
    public static void main(String[] args){
	int sum=100000,add,k;
	Scanner s = new Scanner(System.in);

	k=s.nextInt();
	for(int i=0;i<k;i++){
	    sum*=1.05;
	    if( (add=sum%1000)>0 ){
		sum=sum-add+1000;
	    }
	}

	System.out.println( sum );

    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
	int sum=100000,add,k;
	Scanner s = new Scanner(System.in);

	k=s.nextInt();
	for(int i=0;i<k;i++){
	    sum*=1.05;
	    if( (add=sum%1000)>0 ){
		sum=sum-add+1000;
	    }
	}

	System.out.println( sum );

    }
} Main public static void main(String[] args){
	int sum=100000,add,k;
	Scanner s = new Scanner(System.in);

	k=s.nextInt();
	for(int i=0;i<k;i++){
	    sum*=1.05;
	    if( (add=sum%1000)>0 ){
		sum=sum-add+1000;
	    }
	}

	System.out.println( sum );

    } main {
	int sum=100000,add,k;
	Scanner s = new Scanner(System.in);

	k=s.nextInt();
	for(int i=0;i<k;i++){
	    sum*=1.05;
	    if( (add=sum%1000)>0 ){
		sum=sum-add+1000;
	    }
	}

	System.out.println( sum );

    } int sum=100000 sum 100000 add add k; k Scanner s = new Scanner(System.in); s new Scanner(System.in) k=s.nextInt() k s.nextInt() s.nextInt s for(int i=0;i<k;i++){
	    sum*=1.05;
	    if( (add=sum%1000)>0 ){
		sum=sum-add+1000;
	    }
	} int i=0; int i=0; i 0 i<k i k i++ i++ i {
	    sum*=1.05;
	    if( (add=sum%1000)>0 ){
		sum=sum-add+1000;
	    }
	} {
	    sum*=1.05;
	    if( (add=sum%1000)>0 ){
		sum=sum-add+1000;
	    }
	} sum*=1.05 sum 1.05 if( (add=sum%1000)>0 ){
		sum=sum-add+1000;
	    } (add=sum%1000)>0 (add=sum%1000) add sum%1000 sum 1000 0 {
		sum=sum-add+1000;
	    } sum=sum-add+1000 sum sum-add+1000 sum-add sum add 1000 System.out.println( sum ) System.out.println System.out System System.out sum String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
	int sum=100000,add,k;
	Scanner s = new Scanner(System.in);

	k=s.nextInt();
	for(int i=0;i<k;i++){
	    sum*=1.05;
	    if( (add=sum%1000)>0 ){
		sum=sum-add+1000;
	    }
	}

	System.out.println( sum );

    }
}