import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		final int principal = 100000;
		final float interest = 0.05f;
		int debtBal = principal;
		
		Scanner scan = new Scanner(System.in);
		int week = scan.nextInt();
		
		for(int i = 1; i <= week; i++) {
			debtBal += debtBal * interest;
			debtBal = (int)Math.ceil((double)debtBal / 1000);
			debtBal *= 1000;
		}
		
		System.out.println(debtBal);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		final int principal = 100000;
		final float interest = 0.05f;
		int debtBal = principal;
		
		Scanner scan = new Scanner(System.in);
		int week = scan.nextInt();
		
		for(int i = 1; i <= week; i++) {
			debtBal += debtBal * interest;
			debtBal = (int)Math.ceil((double)debtBal / 1000);
			debtBal *= 1000;
		}
		
		System.out.println(debtBal);
	}
} Main public static void main(String[] args) {
		final int principal = 100000;
		final float interest = 0.05f;
		int debtBal = principal;
		
		Scanner scan = new Scanner(System.in);
		int week = scan.nextInt();
		
		for(int i = 1; i <= week; i++) {
			debtBal += debtBal * interest;
			debtBal = (int)Math.ceil((double)debtBal / 1000);
			debtBal *= 1000;
		}
		
		System.out.println(debtBal);
	} main {
		final int principal = 100000;
		final float interest = 0.05f;
		int debtBal = principal;
		
		Scanner scan = new Scanner(System.in);
		int week = scan.nextInt();
		
		for(int i = 1; i <= week; i++) {
			debtBal += debtBal * interest;
			debtBal = (int)Math.ceil((double)debtBal / 1000);
			debtBal *= 1000;
		}
		
		System.out.println(debtBal);
	} final int principal = 100000; principal 100000 final float interest = 0.05f; interest 0.05f int debtBal = principal; debtBal principal Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int week = scan.nextInt(); week scan.nextInt() scan.nextInt scan for(int i = 1; i <= week; i++) {
			debtBal += debtBal * interest;
			debtBal = (int)Math.ceil((double)debtBal / 1000);
			debtBal *= 1000;
		} int i = 1; int i = 1; i 1 i <= week i week i++ i++ i {
			debtBal += debtBal * interest;
			debtBal = (int)Math.ceil((double)debtBal / 1000);
			debtBal *= 1000;
		} {
			debtBal += debtBal * interest;
			debtBal = (int)Math.ceil((double)debtBal / 1000);
			debtBal *= 1000;
		} debtBal += debtBal * interest debtBal debtBal * interest debtBal interest debtBal = (int)Math.ceil((double)debtBal / 1000) debtBal (int)Math.ceil((double)debtBal / 1000) Math.ceil Math (double)debtBal / 1000 (double)debtBal 1000 debtBal *= 1000 debtBal 1000 System.out.println(debtBal) System.out.println System.out System System.out debtBal String[] args args public class Main {
	public static void main(String[] args) {
		final int principal = 100000;
		final float interest = 0.05f;
		int debtBal = principal;
		
		Scanner scan = new Scanner(System.in);
		int week = scan.nextInt();
		
		for(int i = 1; i <= week; i++) {
			debtBal += debtBal * interest;
			debtBal = (int)Math.ceil((double)debtBal / 1000);
			debtBal *= 1000;
		}
		
		System.out.println(debtBal);
	}
} public class Main {
	public static void main(String[] args) {
		final int principal = 100000;
		final float interest = 0.05f;
		int debtBal = principal;
		
		Scanner scan = new Scanner(System.in);
		int week = scan.nextInt();
		
		for(int i = 1; i <= week; i++) {
			debtBal += debtBal * interest;
			debtBal = (int)Math.ceil((double)debtBal / 1000);
			debtBal *= 1000;
		}
		
		System.out.println(debtBal);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		final int principal = 100000;
		final float interest = 0.05f;
		int debtBal = principal;
		
		Scanner scan = new Scanner(System.in);
		int week = scan.nextInt();
		
		for(int i = 1; i <= week; i++) {
			debtBal += debtBal * interest;
			debtBal = (int)Math.ceil((double)debtBal / 1000);
			debtBal *= 1000;
		}
		
		System.out.println(debtBal);
	}
}