#include <iostream>                                                                                                       
                                                                                                                          
using namespace std;                                                                                                      
                                                                                                                          
int main() {                                                                                                              
  const int m = 100000;                                                                                                   
  int t;                                                                                                                  
  int n;                                                                                                                  
                                                                                                                          
  t = m;                                                                                                                  
  while (cin >> n) {                                                                                                      
    for (int i = 0; i < n; i++) {                                                                                         
      t = t + t * 0.05;                                                                                                   
      if (t % 1000 > 0) {                                                                                                 
        t = t + (1000 - t % 1000); // 切り上げ                                                                            
      }                                                                                                                   
    }                                                                                                                     
    cout << t << endl;                                                                                                    
  }                                                                                                                       
} 