import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    double debt = 100_000;
    while (input.ready()) {
      int weeks = Integer.valueOf(input.readLine());
      for (int i = 0; i < weeks; i++) {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      }
      System.out.println((int) debt);
    }
  }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    double debt = 100_000;
    while (input.ready()) {
      int weeks = Integer.valueOf(input.readLine());
      for (int i = 0; i < weeks; i++) {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      }
      System.out.println((int) debt);
    }
  }

} Main public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    double debt = 100_000;
    while (input.ready()) {
      int weeks = Integer.valueOf(input.readLine());
      for (int i = 0; i < weeks; i++) {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      }
      System.out.println((int) debt);
    }
  } main {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    double debt = 100_000;
    while (input.ready()) {
      int weeks = Integer.valueOf(input.readLine());
      for (int i = 0; i < weeks; i++) {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      }
      System.out.println((int) debt);
    }
  } BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) double debt = 100_000; debt 100_000 while (input.ready()) {
      int weeks = Integer.valueOf(input.readLine());
      for (int i = 0; i < weeks; i++) {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      }
      System.out.println((int) debt);
    } input.ready() input.ready input {
      int weeks = Integer.valueOf(input.readLine());
      for (int i = 0; i < weeks; i++) {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      }
      System.out.println((int) debt);
    } int weeks = Integer.valueOf(input.readLine()); weeks Integer.valueOf(input.readLine()) Integer.valueOf Integer input.readLine() input.readLine input for (int i = 0; i < weeks; i++) {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      } int i = 0; int i = 0; i 0 i < weeks i weeks i++ i++ i {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      } {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      } debt += debt * 0.05 debt debt * 0.05 debt 0.05 double hasuu = debt % 1000; hasuu debt % 1000 debt 1000 if (hasuu > 0) {
          debt += 1000 - hasuu;
        } hasuu > 0 hasuu 0 {
          debt += 1000 - hasuu;
        } debt += 1000 - hasuu debt 1000 - hasuu 1000 hasuu System.out.println((int) debt) System.out.println System.out System System.out (int) debt String[] args args public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    double debt = 100_000;
    while (input.ready()) {
      int weeks = Integer.valueOf(input.readLine());
      for (int i = 0; i < weeks; i++) {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      }
      System.out.println((int) debt);
    }
  }

} public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    double debt = 100_000;
    while (input.ready()) {
      int weeks = Integer.valueOf(input.readLine());
      for (int i = 0; i < weeks; i++) {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      }
      System.out.println((int) debt);
    }
  }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    double debt = 100_000;
    while (input.ready()) {
      int weeks = Integer.valueOf(input.readLine());
      for (int i = 0; i < weeks; i++) {
        debt += debt * 0.05;
        double hasuu = debt % 1000;
        if (hasuu > 0) {
          debt += 1000 - hasuu;
        }
      }
      System.out.println((int) debt);
    }
  }

}