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