import java.util.Scanner;


public class Main{
	
	static Scanner sc = new Scanner(System.in);

	static int loan = 100000, week;
	
	public static void main(String[] args) {
		
		while(read()){
			solve();
		}

	}
	
	public static boolean read(){
		if(!sc.hasNext()) return false;
		
		week = sc.nextInt();
		
		return true;
	}
	
	public static void solve(){
		
		for(int i = 0; i < week; i++){
			loan *= 1.05;
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		}
		System.out.println(loan);
	}

} import java.util.Scanner; Scanner java.util public class Main{
	
	static Scanner sc = new Scanner(System.in);

	static int loan = 100000, week;
	
	public static void main(String[] args) {
		
		while(read()){
			solve();
		}

	}
	
	public static boolean read(){
		if(!sc.hasNext()) return false;
		
		week = sc.nextInt();
		
		return true;
	}
	
	public static void solve(){
		
		for(int i = 0; i < week; i++){
			loan *= 1.05;
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		}
		System.out.println(loan);
	}

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static int loan = 100000 loan 100000 week; week public static void main(String[] args) {
		
		while(read()){
			solve();
		}

	} main {
		
		while(read()){
			solve();
		}

	} while(read()){
			solve();
		} read() read {
			solve();
		} solve() solve String[] args args public static boolean read(){
		if(!sc.hasNext()) return false;
		
		week = sc.nextInt();
		
		return true;
	} read {
		if(!sc.hasNext()) return false;
		
		week = sc.nextInt();
		
		return true;
	} if(!sc.hasNext()) return false; !sc.hasNext() sc.hasNext() sc.hasNext sc return false; false week = sc.nextInt() week sc.nextInt() sc.nextInt sc return true; true public static void solve(){
		
		for(int i = 0; i < week; i++){
			loan *= 1.05;
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		}
		System.out.println(loan);
	} solve {
		
		for(int i = 0; i < week; i++){
			loan *= 1.05;
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		}
		System.out.println(loan);
	} for(int i = 0; i < week; i++){
			loan *= 1.05;
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		} int i = 0; int i = 0; i 0 i < week i week i++ i++ i {
			loan *= 1.05;
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		} {
			loan *= 1.05;
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		} loan *= 1.05 loan 1.05 if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			} loan % 1000 != 0 loan % 1000 loan 1000 0 {
				loan += 1000 - loan % 1000;
			} loan += 1000 - loan % 1000 loan 1000 - loan % 1000 1000 loan % 1000 loan 1000 System.out.println(loan) System.out.println System.out System System.out loan public class Main{
	
	static Scanner sc = new Scanner(System.in);

	static int loan = 100000, week;
	
	public static void main(String[] args) {
		
		while(read()){
			solve();
		}

	}
	
	public static boolean read(){
		if(!sc.hasNext()) return false;
		
		week = sc.nextInt();
		
		return true;
	}
	
	public static void solve(){
		
		for(int i = 0; i < week; i++){
			loan *= 1.05;
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		}
		System.out.println(loan);
	}

} public class Main{
	
	static Scanner sc = new Scanner(System.in);

	static int loan = 100000, week;
	
	public static void main(String[] args) {
		
		while(read()){
			solve();
		}

	}
	
	public static boolean read(){
		if(!sc.hasNext()) return false;
		
		week = sc.nextInt();
		
		return true;
	}
	
	public static void solve(){
		
		for(int i = 0; i < week; i++){
			loan *= 1.05;
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		}
		System.out.println(loan);
	}

} Main
import java.util.Scanner;


public class Main{
	
	static Scanner sc = new Scanner(System.in);

	static int loan = 100000, week;
	
	public static void main(String[] args) {
		
		while(read()){
			solve();
		}

	}
	
	public static boolean read(){
		if(!sc.hasNext()) return false;
		
		week = sc.nextInt();
		
		return true;
	}
	
	public static void solve(){
		
		for(int i = 0; i < week; i++){
			loan *= 1.05;
			if(loan % 1000 != 0){
				loan += 1000 - loan % 1000;
			}
		}
		System.out.println(loan);
	}

}