using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.IO; class Program { static private Magatro M = new Magatro(); static private void Main(string[]args) { M.Scan(); M.Solve(); } } public class Scanner { private string[] S; private int Index; private char Separator; public Scanner(char separator = ' ') { Index = 0; Separator = separator; S = new string[0]; } private string[] Line() { return Console.ReadLine().Split(Separator); } public string Next() { string result; if (Index >= S.Length) { S = Line(); Index = 0; } result = S[Index]; Index++; return result; } public int NextInt() { return int.Parse(Next()); } public double NextDouble() { return double.Parse(Next()); } public long NextLong() { return long.Parse(Next()); } } public class Magatro { private int P, C; readonly int[] Prime = new int[] { 2, 3, 5, 7, 11, 13 }; readonly int[] Non = new int[] { 4, 6, 8, 9, 10, 12 }; public void Scan() { Scanner sc = new Scanner(); P = sc.NextInt(); C = sc.NextInt(); } public void Solve() { double ans = 1; ans *= Math.Pow((double)Prime.Sum()/6,P); ans *= Math.Pow((double)Non.Sum()/6,C); Console.WriteLine(ans); } }