import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			int week = Integer.parseInt(br.readLine());
			System.out.println(calcAfterDebt(100000, week));
		}
		catch(Exception e){
			return;
		}
		finally{
			try {
				br.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				return;
			}
		}
	}
	
	private static int calcAfterDebt(int base,int week)
	{
		int result = base;
		for(int i=0;i<week;i++){
			result = (int) (result*1.05);
			if(result % 1000 > 0){
				result = cutThousand(result) + 1000;
			}
		}
		return result;
	}

	private static int cutThousand(int money){
		String str = Integer.toString(money);
		String str2 = str.substring(0, str.length() - 3);
		while(str2.length() < str.length()){
			str2 += "0";
		}
		
		return Integer.parseInt(str2);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			int week = Integer.parseInt(br.readLine());
			System.out.println(calcAfterDebt(100000, week));
		}
		catch(Exception e){
			return;
		}
		finally{
			try {
				br.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				return;
			}
		}
	}
	
	private static int calcAfterDebt(int base,int week)
	{
		int result = base;
		for(int i=0;i<week;i++){
			result = (int) (result*1.05);
			if(result % 1000 > 0){
				result = cutThousand(result) + 1000;
			}
		}
		return result;
	}

	private static int cutThousand(int money){
		String str = Integer.toString(money);
		String str2 = str.substring(0, str.length() - 3);
		while(str2.length() < str.length()){
			str2 += "0";
		}
		
		return Integer.parseInt(str2);
	}
} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			int week = Integer.parseInt(br.readLine());
			System.out.println(calcAfterDebt(100000, week));
		}
		catch(Exception e){
			return;
		}
		finally{
			try {
				br.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				return;
			}
		}
	} main {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			int week = Integer.parseInt(br.readLine());
			System.out.println(calcAfterDebt(100000, week));
		}
		catch(Exception e){
			return;
		}
		finally{
			try {
				br.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				return;
			}
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
			int week = Integer.parseInt(br.readLine());
			System.out.println(calcAfterDebt(100000, week));
		}
		catch(Exception e){
			return;
		}
		finally{
			try {
				br.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				return;
			}
		} catch(Exception e){
			return;
		} Exception e {
			return;
		} return; {
			try {
				br.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				return;
			}
		} try {
				br.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				return;
			} catch (IOException e) {
				// TODO Auto-generated catch block
				return;
			} IOException e {
				// TODO Auto-generated catch block
				return;
			} return; {
				br.close();
			} br.close() br.close br {
			int week = Integer.parseInt(br.readLine());
			System.out.println(calcAfterDebt(100000, week));
		} int week = Integer.parseInt(br.readLine()); week Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br System.out.println(calcAfterDebt(100000, week)) System.out.println System.out System System.out calcAfterDebt(100000, week) calcAfterDebt 100000 week String[] args args private static int calcAfterDebt(int base,int week)
	{
		int result = base;
		for(int i=0;i<week;i++){
			result = (int) (result*1.05);
			if(result % 1000 > 0){
				result = cutThousand(result) + 1000;
			}
		}
		return result;
	} calcAfterDebt {
		int result = base;
		for(int i=0;i<week;i++){
			result = (int) (result*1.05);
			if(result % 1000 > 0){
				result = cutThousand(result) + 1000;
			}
		}
		return result;
	} int result = base; result base for(int i=0;i<week;i++){
			result = (int) (result*1.05);
			if(result % 1000 > 0){
				result = cutThousand(result) + 1000;
			}
		} int i=0; int i=0; i 0 i<week i week i++ i++ i {
			result = (int) (result*1.05);
			if(result % 1000 > 0){
				result = cutThousand(result) + 1000;
			}
		} {
			result = (int) (result*1.05);
			if(result % 1000 > 0){
				result = cutThousand(result) + 1000;
			}
		} result = (int) (result*1.05) result (int) (result*1.05) result 1.05 if(result % 1000 > 0){
				result = cutThousand(result) + 1000;
			} result % 1000 > 0 result % 1000 result 1000 0 {
				result = cutThousand(result) + 1000;
			} result = cutThousand(result) + 1000 result cutThousand(result) + 1000 cutThousand(result) cutThousand result 1000 return result; result int base base int week week private static int cutThousand(int money){
		String str = Integer.toString(money);
		String str2 = str.substring(0, str.length() - 3);
		while(str2.length() < str.length()){
			str2 += "0";
		}
		
		return Integer.parseInt(str2);
	} cutThousand {
		String str = Integer.toString(money);
		String str2 = str.substring(0, str.length() - 3);
		while(str2.length() < str.length()){
			str2 += "0";
		}
		
		return Integer.parseInt(str2);
	} String str = Integer.toString(money); str Integer.toString(money) Integer.toString Integer money String str2 = str.substring(0, str.length() - 3); str2 str.substring(0, str.length() - 3) str.substring str 0 str.length() - 3 str.length() str.length str 3 while(str2.length() < str.length()){
			str2 += "0";
		} str2.length() < str.length() str2.length() str2.length str2 str.length() str.length str {
			str2 += "0";
		} str2 += "0" str2 "0" return Integer.parseInt(str2); Integer.parseInt(str2) Integer.parseInt Integer str2 int money money
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			int week = Integer.parseInt(br.readLine());
			System.out.println(calcAfterDebt(100000, week));
		}
		catch(Exception e){
			return;
		}
		finally{
			try {
				br.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				return;
			}
		}
	}
	
	private static int calcAfterDebt(int base,int week)
	{
		int result = base;
		for(int i=0;i<week;i++){
			result = (int) (result*1.05);
			if(result % 1000 > 0){
				result = cutThousand(result) + 1000;
			}
		}
		return result;
	}

	private static int cutThousand(int money){
		String str = Integer.toString(money);
		String str2 = str.substring(0, str.length() - 3);
		while(str2.length() < str.length()){
			str2 += "0";
		}
		
		return Integer.parseInt(str2);
	}
}