import java.util.Scanner;


public class Main 
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int n = scanner.nextInt();
		
		int money = 100000;
		for(int i=0; i<n; i++)
		{
			money *= 1.05;
			int x = money%1000;
			if(x > 0)
			{
				money = money - x + 1000;
			}
		}
		System.out.println(money);
	}
} import java.util.Scanner; Scanner java.util public class Main 
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int n = scanner.nextInt();
		
		int money = 100000;
		for(int i=0; i<n; i++)
		{
			money *= 1.05;
			int x = money%1000;
			if(x > 0)
			{
				money = money - x + 1000;
			}
		}
		System.out.println(money);
	}
} Main public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int n = scanner.nextInt();
		
		int money = 100000;
		for(int i=0; i<n; i++)
		{
			money *= 1.05;
			int x = money%1000;
			if(x > 0)
			{
				money = money - x + 1000;
			}
		}
		System.out.println(money);
	} main {
		Scanner scanner = new Scanner(System.in);
		
		int n = scanner.nextInt();
		
		int money = 100000;
		for(int i=0; i<n; i++)
		{
			money *= 1.05;
			int x = money%1000;
			if(x > 0)
			{
				money = money - x + 1000;
			}
		}
		System.out.println(money);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int money = 100000; money 100000 for(int i=0; i<n; i++)
		{
			money *= 1.05;
			int x = money%1000;
			if(x > 0)
			{
				money = money - x + 1000;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			money *= 1.05;
			int x = money%1000;
			if(x > 0)
			{
				money = money - x + 1000;
			}
		} {
			money *= 1.05;
			int x = money%1000;
			if(x > 0)
			{
				money = money - x + 1000;
			}
		} money *= 1.05 money 1.05 int x = money%1000; x money%1000 money 1000 if(x > 0)
			{
				money = money - x + 1000;
			} x > 0 x 0 {
				money = money - x + 1000;
			} money = money - x + 1000 money money - x + 1000 money - x money x 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 scanner = new Scanner(System.in);
		
		int n = scanner.nextInt();
		
		int money = 100000;
		for(int i=0; i<n; i++)
		{
			money *= 1.05;
			int x = money%1000;
			if(x > 0)
			{
				money = money - x + 1000;
			}
		}
		System.out.println(money);
	}
} public class Main 
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int n = scanner.nextInt();
		
		int money = 100000;
		for(int i=0; i<n; i++)
		{
			money *= 1.05;
			int x = money%1000;
			if(x > 0)
			{
				money = money - x + 1000;
			}
		}
		System.out.println(money);
	}
} Main
import java.util.Scanner;


public class Main 
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int n = scanner.nextInt();
		
		int money = 100000;
		for(int i=0; i<n; i++)
		{
			money *= 1.05;
			int x = money%1000;
			if(x > 0)
			{
				money = money - x + 1000;
			}
		}
		System.out.println(money);
	}
}