import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.LinkedList; import java.util.Scanner; import java.util.Set; import java.util.TreeSet; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] prime_dice = {2,3,5,7,11,13}; int[] not_prime_dice = {4,6,8,9,10,12}; final double prime_E = Arrays.stream(prime_dice).average().getAsDouble(); final double not_prime_E = Arrays.stream(not_prime_dice).average().getAsDouble(); final int P = sc.nextInt(); final int C = sc.nextInt(); double answer = 1; for(int i = 0; i < P; i++){ answer *= prime_E; } for(int i = 0; i < C; i++){ answer *= not_prime_E; } System.out.printf("%.14f\n", answer); } }