/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int num = 100000;
		int nums,numc;
		Scanner s = new Scanner(System.in);
		int weeks = s.nextInt();
		for(int i = 0;i < weeks;i++){
			num *= 1.05; 
			nums = num % 1000;
			numc = num / 1000;
			
			if(nums > 0){
				num = numc * 1000 + 1000;
			}
		}

		System.out.println(num);
		
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int num = 100000;
		int nums,numc;
		Scanner s = new Scanner(System.in);
		int weeks = s.nextInt();
		for(int i = 0;i < weeks;i++){
			num *= 1.05; 
			nums = num % 1000;
			numc = num / 1000;
			
			if(nums > 0){
				num = numc * 1000 + 1000;
			}
		}

		System.out.println(num);
		
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		int num = 100000;
		int nums,numc;
		Scanner s = new Scanner(System.in);
		int weeks = s.nextInt();
		for(int i = 0;i < weeks;i++){
			num *= 1.05; 
			nums = num % 1000;
			numc = num / 1000;
			
			if(nums > 0){
				num = numc * 1000 + 1000;
			}
		}

		System.out.println(num);
		
	} main {
		int num = 100000;
		int nums,numc;
		Scanner s = new Scanner(System.in);
		int weeks = s.nextInt();
		for(int i = 0;i < weeks;i++){
			num *= 1.05; 
			nums = num % 1000;
			numc = num / 1000;
			
			if(nums > 0){
				num = numc * 1000 + 1000;
			}
		}

		System.out.println(num);
		
	} int num = 100000; num 100000 int nums nums numc; numc Scanner s = new Scanner(System.in); s new Scanner(System.in) int weeks = s.nextInt(); weeks s.nextInt() s.nextInt s for(int i = 0;i < weeks;i++){
			num *= 1.05; 
			nums = num % 1000;
			numc = num / 1000;
			
			if(nums > 0){
				num = numc * 1000 + 1000;
			}
		} int i = 0; int i = 0; i 0 i < weeks i weeks i++ i++ i {
			num *= 1.05; 
			nums = num % 1000;
			numc = num / 1000;
			
			if(nums > 0){
				num = numc * 1000 + 1000;
			}
		} {
			num *= 1.05; 
			nums = num % 1000;
			numc = num / 1000;
			
			if(nums > 0){
				num = numc * 1000 + 1000;
			}
		} num *= 1.05 num 1.05 nums = num % 1000 nums num % 1000 num 1000 numc = num / 1000 numc num / 1000 num 1000 if(nums > 0){
				num = numc * 1000 + 1000;
			} nums > 0 nums 0 {
				num = numc * 1000 + 1000;
			} num = numc * 1000 + 1000 num numc * 1000 + 1000 numc * 1000 numc 1000 1000 System.out.println(num) System.out.println System.out System System.out num String[] args args
/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int num = 100000;
		int nums,numc;
		Scanner s = new Scanner(System.in);
		int weeks = s.nextInt();
		for(int i = 0;i < weeks;i++){
			num *= 1.05; 
			nums = num % 1000;
			numc = num / 1000;
			
			if(nums > 0){
				num = numc * 1000 + 1000;
			}
		}

		System.out.println(num);
		
	}
}