import java.util.Scanner;
import java.math.BigDecimal;
public class Main {
	public static void main(String[] args) {
		Scanner  s = new Scanner(System.in);
		int n =  s.nextInt();
	  double sum = 100000;
	  double dept=0;
	 for(int i=0;i<n;i++){
		 sum*=1.05;
		 dept =sum%1000;
		 if(dept!=0){
			 sum+=(1000-dept);
		 }
	 }
	 System.out.println((int)sum);
	}
} import java.util.Scanner; Scanner java.util import java.math.BigDecimal; BigDecimal java.math public class Main {
	public static void main(String[] args) {
		Scanner  s = new Scanner(System.in);
		int n =  s.nextInt();
	  double sum = 100000;
	  double dept=0;
	 for(int i=0;i<n;i++){
		 sum*=1.05;
		 dept =sum%1000;
		 if(dept!=0){
			 sum+=(1000-dept);
		 }
	 }
	 System.out.println((int)sum);
	}
} Main public static void main(String[] args) {
		Scanner  s = new Scanner(System.in);
		int n =  s.nextInt();
	  double sum = 100000;
	  double dept=0;
	 for(int i=0;i<n;i++){
		 sum*=1.05;
		 dept =sum%1000;
		 if(dept!=0){
			 sum+=(1000-dept);
		 }
	 }
	 System.out.println((int)sum);
	} main {
		Scanner  s = new Scanner(System.in);
		int n =  s.nextInt();
	  double sum = 100000;
	  double dept=0;
	 for(int i=0;i<n;i++){
		 sum*=1.05;
		 dept =sum%1000;
		 if(dept!=0){
			 sum+=(1000-dept);
		 }
	 }
	 System.out.println((int)sum);
	} Scanner  s = new Scanner(System.in); s new Scanner(System.in) int n =  s.nextInt(); n s.nextInt() s.nextInt s double sum = 100000; sum 100000 double dept=0; dept 0 for(int i=0;i<n;i++){
		 sum*=1.05;
		 dept =sum%1000;
		 if(dept!=0){
			 sum+=(1000-dept);
		 }
	 } int i=0; int i=0; i 0 i<n i n i++ i++ i {
		 sum*=1.05;
		 dept =sum%1000;
		 if(dept!=0){
			 sum+=(1000-dept);
		 }
	 } {
		 sum*=1.05;
		 dept =sum%1000;
		 if(dept!=0){
			 sum+=(1000-dept);
		 }
	 } sum*=1.05 sum 1.05 dept =sum%1000 dept sum%1000 sum 1000 if(dept!=0){
			 sum+=(1000-dept);
		 } dept!=0 dept 0 {
			 sum+=(1000-dept);
		 } sum+=(1000-dept) sum (1000-dept) 1000 dept System.out.println((int)sum) System.out.println System.out System System.out (int)sum String[] args args public class Main {
	public static void main(String[] args) {
		Scanner  s = new Scanner(System.in);
		int n =  s.nextInt();
	  double sum = 100000;
	  double dept=0;
	 for(int i=0;i<n;i++){
		 sum*=1.05;
		 dept =sum%1000;
		 if(dept!=0){
			 sum+=(1000-dept);
		 }
	 }
	 System.out.println((int)sum);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner  s = new Scanner(System.in);
		int n =  s.nextInt();
	  double sum = 100000;
	  double dept=0;
	 for(int i=0;i<n;i++){
		 sum*=1.05;
		 dept =sum%1000;
		 if(dept!=0){
			 sum+=(1000-dept);
		 }
	 }
	 System.out.println((int)sum);
	}
} Main
import java.util.Scanner;
import java.math.BigDecimal;
public class Main {
	public static void main(String[] args) {
		Scanner  s = new Scanner(System.in);
		int n =  s.nextInt();
	  double sum = 100000;
	  double dept=0;
	 for(int i=0;i<n;i++){
		 sum*=1.05;
		 dept =sum%1000;
		 if(dept!=0){
			 sum+=(1000-dept);
		 }
	 }
	 System.out.println((int)sum);
	}
}