#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double h;
cin >> h;
int n = 9;
double s = 0;
s += h;
while (n--)
{
h /= 2;
s += h * 2;
}
cout << s << endl
<< h / 2;
return 0;
}