#include <iostream>
#include <format>
#include <cmath>
#include <string>
using namespace std;
typedef long long ll;
int main() {
double h;
cin >> h;
double sum = 0;
for (int i = 0; i < 10; i++) {
sum = sum + h + h / 2.0;
h /= 2;
}
cout << format("{:g}\n{:g}",sum,h) << endl;
}