import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class No212 { static int[] prime = { 2, 3, 5, 7, 11, 13 }; static int[] composite = { 4, 6, 8, 9, 10, 12 }; public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader( System.in)); int[] a = strToIntArray(br.readLine()); // List ansList = new ArrayList(); int P = a[0]; int C = a[1]; double psum = 0; for (int integer : prime) { psum += integer; } double csum = 0; for (int integer : composite) { csum += integer; } double pavg = psum / 6.0; double cavg = csum / 6.0; double ans = 1; for (int i = 0; i < P; i++) { ans *= pavg; } for (int i = 0; i < C; i++) { ans *= cavg; } System.out.println(ans); } catch (Exception e) { System.err.println("Error:" + e.getMessage()); } } static int[] strToIntArray(String S) { String[] strArray = S.split(" "); int[] intArray = new int[strArray.length]; for (int i = 0; i < strArray.length; i++) { intArray[i] = Integer.parseInt(strArray[i]); } return intArray; } }