#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;

  double dif = ((int)money/1000)*1000;
  cout << dif << endl;
  if(money - dif > 0){
    money = dif + 1000;
  }
  cout << money << endl;
}