#include <iostream>
#include <iomanip>
using namespace std;
int main() {
// 下落的高度和落地的次数
double h;
int n;
double s = 0;
cin >> h;
cin >> n;
// write your code here......
for (int i = 1; i <= n; i++) {
s += h;
if (i > 1) {
s += h;
}
h /= 2;
}
cout << fixed << setprecision(1) << s << " " << h;
return 0;
}



京公网安备 11010502036488号