#include <iostream>
using namespace std;
int main()
{
double h ;
cin >> h;
double l = 0;
for(int i = 1 ; i <= 10 ; i ++)
{
l += h; //从最高处到地面的距离
h /= 2;
l += h; //反弹至最高处的距离
}
cout << l <<" " << h;
return 0;
}