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

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