import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); double m = sc.nextInt(); int n = sc.nextInt(); for (int i = 0; i < n; i++) { m = m * 2 / 3 + (m + 1) / 3; } System.out.println(m); } }