import java.util.Scanner; public class Main_yukicoder212 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int p = sc.nextInt(); int c = sc.nextInt(); int[] d1 = {2, 3, 5, 7, 11, 13}; int[] d2 = {4, 6, 8, 9, 10, 12}; double e1 = 0; double e2 = 0; for (int i = 0; i < 6; i++) { e1 += (double)d1[i] / 6; e2 += (double)d2[i] / 6; } System.out.println(Math.pow(e1, p) * Math.pow(e2, c)); sc.close(); } }