import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        float h=scanner.nextFloat();
        int n =scanner.nextInt();
        double height;
        height = (double)h;
        double sum;
        sum = height;
        //write your code here......
        for(int i = 0; i < n; i++)
        {
            height = height / 2.0;
            sum = sum + height * 2.0;
        }
        sum = sum - height * 2.0;

        System.out.println(String.format("%.3f", height)+" "+String.format("%.3f", sum));
        

    }
}