import java.util.*;
import java.io.*;
public class Main {
	Scanner sc;
	PrintWriter pw;
	public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	}
	public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	}
	private void close() {
		pw.flush();
		pw.close();
	}
	private void solve() {
		int n = sc.nextInt();
		int m = 100000;
		for(int i = 0; i < n; i++) {
			m*=1.05f;
			int x = m%1000;
			m = x != 0 ? 1000-x+m : m;
		}
		pw.println(m);
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
	Scanner sc;
	PrintWriter pw;
	public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	}
	public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	}
	private void close() {
		pw.flush();
		pw.close();
	}
	private void solve() {
		int n = sc.nextInt();
		int m = 100000;
		for(int i = 0; i < n; i++) {
			m*=1.05f;
			int x = m%1000;
			m = x != 0 ? 1000-x+m : m;
		}
		pw.println(m);
	}
} Main Scanner sc; sc PrintWriter pw; pw public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	} main {
		Main m = new Main();
		m.solve();
		m.close();
	} Main m = new Main(); m new Main() m.solve() m.solve m m.close() m.close m String... args args public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	} Main {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	} sc = new Scanner(System.in) sc new Scanner(System.in) pw = new PrintWriter(System.out) pw new PrintWriter(System.out) private void close() {
		pw.flush();
		pw.close();
	} close {
		pw.flush();
		pw.close();
	} pw.flush() pw.flush pw pw.close() pw.close pw private void solve() {
		int n = sc.nextInt();
		int m = 100000;
		for(int i = 0; i < n; i++) {
			m*=1.05f;
			int x = m%1000;
			m = x != 0 ? 1000-x+m : m;
		}
		pw.println(m);
	} solve {
		int n = sc.nextInt();
		int m = 100000;
		for(int i = 0; i < n; i++) {
			m*=1.05f;
			int x = m%1000;
			m = x != 0 ? 1000-x+m : m;
		}
		pw.println(m);
	} int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = 100000; m 100000 for(int i = 0; i < n; i++) {
			m*=1.05f;
			int x = m%1000;
			m = x != 0 ? 1000-x+m : m;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			m*=1.05f;
			int x = m%1000;
			m = x != 0 ? 1000-x+m : m;
		} {
			m*=1.05f;
			int x = m%1000;
			m = x != 0 ? 1000-x+m : m;
		} m*=1.05f m 1.05f int x = m%1000; x m%1000 m 1000 m = x != 0 ? 1000-x+m : m m x != 0 ? 1000-x+m : m x != 0 x 0 1000-x+m 1000-x 1000 x m m pw.println(m) pw.println pw m public class Main {
	Scanner sc;
	PrintWriter pw;
	public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	}
	public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	}
	private void close() {
		pw.flush();
		pw.close();
	}
	private void solve() {
		int n = sc.nextInt();
		int m = 100000;
		for(int i = 0; i < n; i++) {
			m*=1.05f;
			int x = m%1000;
			m = x != 0 ? 1000-x+m : m;
		}
		pw.println(m);
	}
} public class Main {
	Scanner sc;
	PrintWriter pw;
	public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	}
	public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	}
	private void close() {
		pw.flush();
		pw.close();
	}
	private void solve() {
		int n = sc.nextInt();
		int m = 100000;
		for(int i = 0; i < n; i++) {
			m*=1.05f;
			int x = m%1000;
			m = x != 0 ? 1000-x+m : m;
		}
		pw.println(m);
	}
} Main
import java.util.*;
import java.io.*;
public class Main {
	Scanner sc;
	PrintWriter pw;
	public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	}
	public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	}
	private void close() {
		pw.flush();
		pw.close();
	}
	private void solve() {
		int n = sc.nextInt();
		int m = 100000;
		for(int i = 0; i < n; i++) {
			m*=1.05f;
			int x = m%1000;
			m = x != 0 ? 1000-x+m : m;
		}
		pw.println(m);
	}
}