import java.util.*;

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

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