using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace foryuki { class Program { static void Main(string[] args) { int[] s = new int[] { 2, 3, 5, 7, 11, 13 }; int[] g = new int[] { 4, 6, 8, 9, 10, 12 }; int[] P = ConvertStringArrayToIntArray(Console.ReadLine().Split()); double ss = (double)s.Sum() / 6; double sg = (double) g.Sum() / 6; double ans; ans = Math.Pow(ss, P[0]) * Math.Pow(sg, P[1]); Console.WriteLine(ans); Console.ReadLine(); } //------------------------------------------------------------- static int[] ConvertStringArrayToIntArray(string[] str) { int[] b = Array.ConvertAll(str, delegate(string value) { return int.Parse(value); }); return b; } static List ConvertStringArrayToIntList(string[] str) { var list = new List(); foreach (var c in str) { list.Add(int.Parse(c)); } return list; } } }