#include<stdio.h>int main(void){ int n,i; double m,h,s; scanf("%lf %d",&m,&n); s=0; for(i=0;i<n;i++){ h=m/2; m=h; s=s+2*h; } printf("%.2lf ",h); printf("%.2lf",s); return 0;}