//#include <bits/stdc++.h>
#include <iostream>
#include <cstdio>
#include <math.h>
#include<algorithm>
#include <utility>
using namespace std;
int main() {
	double n, add, money = 100000;
	while (cin >> n) {
		add = 0;
		money = 100000;
		for (int i = 0; i < n; i++) {
			add = money*0.05;
			money += add;
		}
		int ans = money,t;
		cout << ans << endl;
		t=ans / 1000;
			ans /= 10000;
			ans *= 10000;
		if (t % 10 != 0) {
			ans += 10000;
		}
		cout << ans << endl;
	}
	return 0;
}