
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int week = sc.nextInt();
		long money = 100000;
		
		for(int i = 0; i < week; i++){
			money += getInterest(money);
			money = revaliationMoney(money);
		}
		
		System.out.println(money);
	}
	
	private static long getInterest(long money){
		return money * 5 / 100;
	}
	
	private static long revaliationMoney(long money){
		long fraction = money % 1000;
		if(fraction != 0){
			money = money - fraction;
			return money + 1000;
		}
		else{
			return money;
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int week = sc.nextInt();
		long money = 100000;
		
		for(int i = 0; i < week; i++){
			money += getInterest(money);
			money = revaliationMoney(money);
		}
		
		System.out.println(money);
	}
	
	private static long getInterest(long money){
		return money * 5 / 100;
	}
	
	private static long revaliationMoney(long money){
		long fraction = money % 1000;
		if(fraction != 0){
			money = money - fraction;
			return money + 1000;
		}
		else{
			return money;
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int week = sc.nextInt();
		long money = 100000;
		
		for(int i = 0; i < week; i++){
			money += getInterest(money);
			money = revaliationMoney(money);
		}
		
		System.out.println(money);
	} main {
		Scanner sc = new Scanner(System.in);
		int week = sc.nextInt();
		long money = 100000;
		
		for(int i = 0; i < week; i++){
			money += getInterest(money);
			money = revaliationMoney(money);
		}
		
		System.out.println(money);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int week = sc.nextInt(); week sc.nextInt() sc.nextInt sc long money = 100000; money 100000 for(int i = 0; i < week; i++){
			money += getInterest(money);
			money = revaliationMoney(money);
		} int i = 0; int i = 0; i 0 i < week i week i++ i++ i {
			money += getInterest(money);
			money = revaliationMoney(money);
		} {
			money += getInterest(money);
			money = revaliationMoney(money);
		} money += getInterest(money) money getInterest(money) getInterest money money = revaliationMoney(money) money revaliationMoney(money) revaliationMoney money System.out.println(money) System.out.println System.out System System.out money String[] args args private static long getInterest(long money){
		return money * 5 / 100;
	} getInterest {
		return money * 5 / 100;
	} return money * 5 / 100; money * 5 / 100 money * 5 money 5 100 long money money private static long revaliationMoney(long money){
		long fraction = money % 1000;
		if(fraction != 0){
			money = money - fraction;
			return money + 1000;
		}
		else{
			return money;
		}
	} revaliationMoney {
		long fraction = money % 1000;
		if(fraction != 0){
			money = money - fraction;
			return money + 1000;
		}
		else{
			return money;
		}
	} long fraction = money % 1000; fraction money % 1000 money 1000 if(fraction != 0){
			money = money - fraction;
			return money + 1000;
		}
		else{
			return money;
		} fraction != 0 fraction 0 {
			money = money - fraction;
			return money + 1000;
		} money = money - fraction money money - fraction money fraction return money + 1000; money + 1000 money 1000 {
			return money;
		} return money; money long money money public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int week = sc.nextInt();
		long money = 100000;
		
		for(int i = 0; i < week; i++){
			money += getInterest(money);
			money = revaliationMoney(money);
		}
		
		System.out.println(money);
	}
	
	private static long getInterest(long money){
		return money * 5 / 100;
	}
	
	private static long revaliationMoney(long money){
		long fraction = money % 1000;
		if(fraction != 0){
			money = money - fraction;
			return money + 1000;
		}
		else{
			return money;
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int week = sc.nextInt();
		long money = 100000;
		
		for(int i = 0; i < week; i++){
			money += getInterest(money);
			money = revaliationMoney(money);
		}
		
		System.out.println(money);
	}
	
	private static long getInterest(long money){
		return money * 5 / 100;
	}
	
	private static long revaliationMoney(long money){
		long fraction = money % 1000;
		if(fraction != 0){
			money = money - fraction;
			return money + 1000;
		}
		else{
			return money;
		}
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int week = sc.nextInt();
		long money = 100000;
		
		for(int i = 0; i < week; i++){
			money += getInterest(money);
			money = revaliationMoney(money);
		}
		
		System.out.println(money);
	}
	
	private static long getInterest(long money){
		return money * 5 / 100;
	}
	
	private static long revaliationMoney(long money){
		long fraction = money % 1000;
		if(fraction != 0){
			money = money - fraction;
			return money + 1000;
		}
		else{
			return money;
		}
	}
}