import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int money=100000;
		for(int i=0;i<a;i++){
			money*=1.05;
			int amari=money%1000;
			money-=amari;
			money+=amari==0 ? 0 : 1000;
		}
		System.out.println(money);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int money=100000;
		for(int i=0;i<a;i++){
			money*=1.05;
			int amari=money%1000;
			money-=amari;
			money+=amari==0 ? 0 : 1000;
		}
		System.out.println(money);
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int money=100000;
		for(int i=0;i<a;i++){
			money*=1.05;
			int amari=money%1000;
			money-=amari;
			money+=amari==0 ? 0 : 1000;
		}
		System.out.println(money);
	} main {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int money=100000;
		for(int i=0;i<a;i++){
			money*=1.05;
			int amari=money%1000;
			money-=amari;
			money+=amari==0 ? 0 : 1000;
		}
		System.out.println(money);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int money=100000; money 100000 for(int i=0;i<a;i++){
			money*=1.05;
			int amari=money%1000;
			money-=amari;
			money+=amari==0 ? 0 : 1000;
		} int i=0; int i=0; i 0 i<a i a i++ i++ i {
			money*=1.05;
			int amari=money%1000;
			money-=amari;
			money+=amari==0 ? 0 : 1000;
		} {
			money*=1.05;
			int amari=money%1000;
			money-=amari;
			money+=amari==0 ? 0 : 1000;
		} money*=1.05 money 1.05 int amari=money%1000; amari money%1000 money 1000 money-=amari money amari money+=amari==0 ? 0 : 1000 money amari==0 ? 0 : 1000 amari==0 amari 0 0 1000 System.out.println(money) System.out.println System.out System System.out money String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int money=100000;
		for(int i=0;i<a;i++){
			money*=1.05;
			int amari=money%1000;
			money-=amari;
			money+=amari==0 ? 0 : 1000;
		}
		System.out.println(money);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int money=100000;
		for(int i=0;i<a;i++){
			money*=1.05;
			int amari=money%1000;
			money-=amari;
			money+=amari==0 ? 0 : 1000;
		}
		System.out.println(money);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int money=100000;
		for(int i=0;i<a;i++){
			money*=1.05;
			int amari=money%1000;
			money-=amari;
			money+=amari==0 ? 0 : 1000;
		}
		System.out.println(money);
	}
}