using System; using System.Linq; namespace PC_Dice_CS { class Program { static void Main(string[] args) { int[] PC = Console.ReadLine().Split(' ').Select(v => int.Parse(v)).ToArray(); int P = PC[0]; int C = PC[1]; double EP = (2 + 3 + 5 + 7 + 11 + 13) / 6.0; double EC = (4 + 6 + 8 + 9 + 10 + 12) / 6.0; double ex = 1.0; for (int p = 0; p < P; p++) { ex *= EP; } for (int c = 0; c < C; c++) { ex *= EC; } Console.WriteLine("{0}", ex); } } }