#include <iostream>

using namespace std;

int main(){
  int i;
  double money = 100000;
  cin >> i;
  for(; i > 0; i--){
    money += money*0.05;
  }

  cout << money << endl;

  if(money - (int)money%10000 > 0){
    money = ((int)money/10000)*10000 + 10000.0;
  }
  cout << money << endl;
}