import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main {
    public static void main(String[] args) throws Exception{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int n = Integer.parseInt(line);
            int money = 100000;
            for(int i=0;i<n;i++){
            	money *= 1.05;
            	String temp = money + "";
            	int len = temp.length();
            	if((!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0")))){
            		money = ((money / 1000) + 1) * 1000;
            	}
            	//money = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;
            }
            System.out.println(money);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    public static void main(String[] args) throws Exception{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int n = Integer.parseInt(line);
            int money = 100000;
            for(int i=0;i<n;i++){
            	money *= 1.05;
            	String temp = money + "";
            	int len = temp.length();
            	if((!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0")))){
            		money = ((money / 1000) + 1) * 1000;
            	}
            	//money = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;
            }
            System.out.println(money);
    }
} Main public static void main(String[] args) throws Exception{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int n = Integer.parseInt(line);
            int money = 100000;
            for(int i=0;i<n;i++){
            	money *= 1.05;
            	String temp = money + "";
            	int len = temp.length();
            	if((!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0")))){
            		money = ((money / 1000) + 1) * 1000;
            	}
            	//money = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;
            }
            System.out.println(money);
    } main {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int n = Integer.parseInt(line);
            int money = 100000;
            for(int i=0;i<n;i++){
            	money *= 1.05;
            	String temp = money + "";
            	int len = temp.length();
            	if((!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0")))){
            		money = ((money / 1000) + 1) * 1000;
            	}
            	//money = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;
            }
            System.out.println(money);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br int n = Integer.parseInt(line); n Integer.parseInt(line) Integer.parseInt Integer line int money = 100000; money 100000 for(int i=0;i<n;i++){
            	money *= 1.05;
            	String temp = money + "";
            	int len = temp.length();
            	if((!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0")))){
            		money = ((money / 1000) + 1) * 1000;
            	}
            	//money = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;
            } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            	money *= 1.05;
            	String temp = money + "";
            	int len = temp.length();
            	if((!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0")))){
            		money = ((money / 1000) + 1) * 1000;
            	}
            	//money = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;
            } {
            	money *= 1.05;
            	String temp = money + "";
            	int len = temp.length();
            	if((!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0")))){
            		money = ((money / 1000) + 1) * 1000;
            	}
            	//money = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;
            } money *= 1.05 money 1.05 String temp = money + ""; temp money + "" money "" int len = temp.length(); len temp.length() temp.length temp if((!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0")))){
            		money = ((money / 1000) + 1) * 1000;
            	} (!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0"))) (!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0"))) (!temp.substring(len-1, len).equals("0")) temp.substring(len-1, len).equals("0") temp.substring(len-1, len).equals temp.substring(len-1, len) temp.substring temp len-1 len 1 len "0" (!temp.substring(len-2, len-1).equals("0")) temp.substring(len-2, len-1).equals("0") temp.substring(len-2, len-1).equals temp.substring(len-2, len-1) temp.substring temp len-2 len 2 len-1 len 1 "0" ((!temp.substring(len-3, len-2).equals("0"))) temp.substring(len-3, len-2).equals("0") temp.substring(len-3, len-2).equals temp.substring(len-3, len-2) temp.substring temp len-3 len 3 len-2 len 2 "0" {
            		money = ((money / 1000) + 1) * 1000;
            	} money = ((money / 1000) + 1) * 1000 money ((money / 1000) + 1) * 1000 ((money / 1000) + 1) (money / 1000) money 1000 1 1000 System.out.println(money) System.out.println System.out System System.out money String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main {
    public static void main(String[] args) throws Exception{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String line = br.readLine();
            int n = Integer.parseInt(line);
            int money = 100000;
            for(int i=0;i<n;i++){
            	money *= 1.05;
            	String temp = money + "";
            	int len = temp.length();
            	if((!temp.substring(len-1, len).equals("0")) || (!temp.substring(len-2, len-1).equals("0"))
            			|| ((!temp.substring(len-3, len-2).equals("0")))){
            		money = ((money / 1000) + 1) * 1000;
            	}
            	//money = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;
            }
            System.out.println(money);
    }
}