import java.io.*;

class Main {
    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            String line = br.readLine();
            int deptWeek = Integer.parseInt(line);
            int dept = 100000;
            for(int i = 0; i < deptWeek; i++ ){
            	int checkDept = (int)(dept * 0.05);
            	dept = dept + checkDept;
            	String strCheckDept = String.valueOf(dept);
            	String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length());
            	if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	}
            }
            System.out.println(dept); 
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} import java.io.*; io.* java class Main {
    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            String line = br.readLine();
            int deptWeek = Integer.parseInt(line);
            int dept = 100000;
            for(int i = 0; i < deptWeek; i++ ){
            	int checkDept = (int)(dept * 0.05);
            	dept = dept + checkDept;
            	String strCheckDept = String.valueOf(dept);
            	String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length());
            	if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	}
            }
            System.out.println(dept); 
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            String line = br.readLine();
            int deptWeek = Integer.parseInt(line);
            int dept = 100000;
            for(int i = 0; i < deptWeek; i++ ){
            	int checkDept = (int)(dept * 0.05);
            	dept = dept + checkDept;
            	String strCheckDept = String.valueOf(dept);
            	String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length());
            	if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	}
            }
            System.out.println(dept); 
        } catch (Exception e) {
            e.printStackTrace();
        }
    } main {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            String line = br.readLine();
            int deptWeek = Integer.parseInt(line);
            int dept = 100000;
            for(int i = 0; i < deptWeek; i++ ){
            	int checkDept = (int)(dept * 0.05);
            	dept = dept + checkDept;
            	String strCheckDept = String.valueOf(dept);
            	String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length());
            	if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	}
            }
            System.out.println(dept); 
        } catch (Exception e) {
            e.printStackTrace();
        }
    } try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            String line = br.readLine();
            int deptWeek = Integer.parseInt(line);
            int dept = 100000;
            for(int i = 0; i < deptWeek; i++ ){
            	int checkDept = (int)(dept * 0.05);
            	dept = dept + checkDept;
            	String strCheckDept = String.valueOf(dept);
            	String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length());
            	if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	}
            }
            System.out.println(dept); 
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            String line = br.readLine();
            int deptWeek = Integer.parseInt(line);
            int dept = 100000;
            for(int i = 0; i < deptWeek; i++ ){
            	int checkDept = (int)(dept * 0.05);
            	dept = dept + checkDept;
            	String strCheckDept = String.valueOf(dept);
            	String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length());
            	if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	}
            }
            System.out.println(dept); 
        } 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 deptWeek = Integer.parseInt(line); deptWeek Integer.parseInt(line) Integer.parseInt Integer line int dept = 100000; dept 100000 for(int i = 0; i < deptWeek; i++ ){
            	int checkDept = (int)(dept * 0.05);
            	dept = dept + checkDept;
            	String strCheckDept = String.valueOf(dept);
            	String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length());
            	if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	}
            } int i = 0; int i = 0; i 0 i < deptWeek i deptWeek i++ i++ i {
            	int checkDept = (int)(dept * 0.05);
            	dept = dept + checkDept;
            	String strCheckDept = String.valueOf(dept);
            	String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length());
            	if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	}
            } {
            	int checkDept = (int)(dept * 0.05);
            	dept = dept + checkDept;
            	String strCheckDept = String.valueOf(dept);
            	String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length());
            	if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	}
            } int checkDept = (int)(dept * 0.05); checkDept (int)(dept * 0.05) dept 0.05 dept = dept + checkDept dept dept + checkDept dept checkDept String strCheckDept = String.valueOf(dept); strCheckDept String.valueOf(dept) String.valueOf String dept String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length()); num strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length()) strCheckDept.substring strCheckDept strCheckDept.length() - 3 strCheckDept.length() strCheckDept.length strCheckDept 3 strCheckDept.length() strCheckDept.length strCheckDept if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	} !num.equals("000") num.equals("000") num.equals num "000" {
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	} int numnum = Integer.parseInt(num); numnum Integer.parseInt(num) Integer.parseInt Integer num dept = dept + 1000 - numnum dept dept + 1000 - numnum dept + 1000 dept 1000 numnum System.out.println(dept) System.out.println System.out System System.out dept String[] args args
import java.io.*;

class Main {
    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            String line = br.readLine();
            int deptWeek = Integer.parseInt(line);
            int dept = 100000;
            for(int i = 0; i < deptWeek; i++ ){
            	int checkDept = (int)(dept * 0.05);
            	dept = dept + checkDept;
            	String strCheckDept = String.valueOf(dept);
            	String num = strCheckDept.substring(strCheckDept.length() - 3, strCheckDept.length());
            	if(!num.equals("000")){
            		int numnum = Integer.parseInt(num);
            		dept = dept + 1000 - numnum;
            	}
            }
            System.out.println(dept); 
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}