import java.util.*;

class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int week = sc.nextInt();

	double money = 100000;
	for(int i=0; i<week; i++){
	    money = money + money*0.05;
	    if(money%1000!=0){
		money = money + (1000 - (money%1000));
	    }
	}

	System.out.println((int)money);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int week = sc.nextInt();

	double money = 100000;
	for(int i=0; i<week; i++){
	    money = money + money*0.05;
	    if(money%1000!=0){
		money = money + (1000 - (money%1000));
	    }
	}

	System.out.println((int)money);
    }
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int week = sc.nextInt();

	double money = 100000;
	for(int i=0; i<week; i++){
	    money = money + money*0.05;
	    if(money%1000!=0){
		money = money + (1000 - (money%1000));
	    }
	}

	System.out.println((int)money);
    } main {
	Scanner sc = new Scanner(System.in);

	int week = sc.nextInt();

	double money = 100000;
	for(int i=0; i<week; i++){
	    money = money + money*0.05;
	    if(money%1000!=0){
		money = money + (1000 - (money%1000));
	    }
	}

	System.out.println((int)money);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int week = sc.nextInt(); week sc.nextInt() sc.nextInt sc double money = 100000; money 100000 for(int i=0; i<week; i++){
	    money = money + money*0.05;
	    if(money%1000!=0){
		money = money + (1000 - (money%1000));
	    }
	} int i=0; int i=0; i 0 i<week i week i++ i++ i {
	    money = money + money*0.05;
	    if(money%1000!=0){
		money = money + (1000 - (money%1000));
	    }
	} {
	    money = money + money*0.05;
	    if(money%1000!=0){
		money = money + (1000 - (money%1000));
	    }
	} money = money + money*0.05 money money + money*0.05 money money*0.05 money 0.05 if(money%1000!=0){
		money = money + (1000 - (money%1000));
	    } money%1000!=0 money%1000 money 1000 0 {
		money = money + (1000 - (money%1000));
	    } money = money + (1000 - (money%1000)) money money + (1000 - (money%1000)) money (1000 - (money%1000)) 1000 (money%1000) money 1000 System.out.println((int)money) System.out.println System.out System System.out (int)money String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int week = sc.nextInt();

	double money = 100000;
	for(int i=0; i<week; i++){
	    money = money + money*0.05;
	    if(money%1000!=0){
		money = money + (1000 - (money%1000));
	    }
	}

	System.out.println((int)money);
    }
}