#include <iostream>
using namespace std;

int main() {
      int n;
      cin >> n;
      for (int i=0;i<n;i++) {
            n = 1.05*n;
            if (n%1000!=0) {
                  n = n + (1000-n%1000);
            }
      }
      cout << n;
      return 0;
}