#include <cstdio>
#include <cmath>
using namespace std;

int main() {
  int n, a = 100000;
  scanf("%d", &n);
  while (n--) {
    a += a * 5 / 100;
    a = (int)ceil(a / 1000.0) * 1000;
  }
  printf("%d\n", a);
}
