#include <iostream>
#include <iomanip>
using namespace std;
int main() {
// 下落的高度和落地的次数
double h;
int n;
cin >> h;
cin >> n;
double x = h,y = 0;
for(int i = 1; i <= n; i++)
{
x += 2*y;
y = h / 2;
h = y;
}
cout << fixed << setprecision(1)<< x << " " << y;
return 0;
}

京公网安备 11010502036488号