import java.util.Scanner;

public class Main {

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

		//??????10??????
		int debt = 100000;

		//n??±???
		int n = scanner.nextInt();

		for(int i=0; i<n; i++){
			debt *= 1.05;
			debt = roundOff(debt);
		}
		System.out.println(debt);
	}

	public static int roundOff(int debt){
		String strDebt = String.valueOf(debt);
		int splitDebt = Integer.parseInt(strDebt.substring(strDebt.length()-3));

		if(0<splitDebt){
			//debt = (105000 + 10000) - 5000
			debt = (debt+1000) - splitDebt;
		}
		return debt;
	}

} import java.util.Scanner; Scanner java.util public class Main {

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

		//??????10??????
		int debt = 100000;

		//n??±???
		int n = scanner.nextInt();

		for(int i=0; i<n; i++){
			debt *= 1.05;
			debt = roundOff(debt);
		}
		System.out.println(debt);
	}

	public static int roundOff(int debt){
		String strDebt = String.valueOf(debt);
		int splitDebt = Integer.parseInt(strDebt.substring(strDebt.length()-3));

		if(0<splitDebt){
			//debt = (105000 + 10000) - 5000
			debt = (debt+1000) - splitDebt;
		}
		return debt;
	}

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

		//??????10??????
		int debt = 100000;

		//n??±???
		int n = scanner.nextInt();

		for(int i=0; i<n; i++){
			debt *= 1.05;
			debt = roundOff(debt);
		}
		System.out.println(debt);
	} main {
		Scanner scanner = new Scanner(System.in);

		//??????10??????
		int debt = 100000;

		//n??±???
		int n = scanner.nextInt();

		for(int i=0; i<n; i++){
			debt *= 1.05;
			debt = roundOff(debt);
		}
		System.out.println(debt);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int debt = 100000; debt 100000 int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner for(int i=0; i<n; i++){
			debt *= 1.05;
			debt = roundOff(debt);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			debt *= 1.05;
			debt = roundOff(debt);
		} {
			debt *= 1.05;
			debt = roundOff(debt);
		} debt *= 1.05 debt 1.05 debt = roundOff(debt) debt roundOff(debt) roundOff debt System.out.println(debt) System.out.println System.out System System.out debt String[] args args public static int roundOff(int debt){
		String strDebt = String.valueOf(debt);
		int splitDebt = Integer.parseInt(strDebt.substring(strDebt.length()-3));

		if(0<splitDebt){
			//debt = (105000 + 10000) - 5000
			debt = (debt+1000) - splitDebt;
		}
		return debt;
	} roundOff {
		String strDebt = String.valueOf(debt);
		int splitDebt = Integer.parseInt(strDebt.substring(strDebt.length()-3));

		if(0<splitDebt){
			//debt = (105000 + 10000) - 5000
			debt = (debt+1000) - splitDebt;
		}
		return debt;
	} String strDebt = String.valueOf(debt); strDebt String.valueOf(debt) String.valueOf String debt int splitDebt = Integer.parseInt(strDebt.substring(strDebt.length()-3)); splitDebt Integer.parseInt(strDebt.substring(strDebt.length()-3)) Integer.parseInt Integer strDebt.substring(strDebt.length()-3) strDebt.substring strDebt strDebt.length()-3 strDebt.length() strDebt.length strDebt 3 if(0<splitDebt){
			//debt = (105000 + 10000) - 5000
			debt = (debt+1000) - splitDebt;
		} 0<splitDebt 0 splitDebt {
			//debt = (105000 + 10000) - 5000
			debt = (debt+1000) - splitDebt;
		} debt = (debt+1000) - splitDebt debt (debt+1000) - splitDebt (debt+1000) debt 1000 splitDebt return debt; debt int debt debt public class Main {

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

		//??????10??????
		int debt = 100000;

		//n??±???
		int n = scanner.nextInt();

		for(int i=0; i<n; i++){
			debt *= 1.05;
			debt = roundOff(debt);
		}
		System.out.println(debt);
	}

	public static int roundOff(int debt){
		String strDebt = String.valueOf(debt);
		int splitDebt = Integer.parseInt(strDebt.substring(strDebt.length()-3));

		if(0<splitDebt){
			//debt = (105000 + 10000) - 5000
			debt = (debt+1000) - splitDebt;
		}
		return debt;
	}

} public class Main {

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

		//??????10??????
		int debt = 100000;

		//n??±???
		int n = scanner.nextInt();

		for(int i=0; i<n; i++){
			debt *= 1.05;
			debt = roundOff(debt);
		}
		System.out.println(debt);
	}

	public static int roundOff(int debt){
		String strDebt = String.valueOf(debt);
		int splitDebt = Integer.parseInt(strDebt.substring(strDebt.length()-3));

		if(0<splitDebt){
			//debt = (105000 + 10000) - 5000
			debt = (debt+1000) - splitDebt;
		}
		return debt;
	}

} Main
import java.util.Scanner;

public class Main {

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

		//??????10??????
		int debt = 100000;

		//n??±???
		int n = scanner.nextInt();

		for(int i=0; i<n; i++){
			debt *= 1.05;
			debt = roundOff(debt);
		}
		System.out.println(debt);
	}

	public static int roundOff(int debt){
		String strDebt = String.valueOf(debt);
		int splitDebt = Integer.parseInt(strDebt.substring(strDebt.length()-3));

		if(0<splitDebt){
			//debt = (105000 + 10000) - 5000
			debt = (debt+1000) - splitDebt;
		}
		return debt;
	}

}