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