let dice1 = [2,3,5,7,11,13] let dice2 = [4,6,8,9,10,12] let hei1 = dice1.reduce(0.0, { $0 + Double($1)}) / 6 let hei2 = dice2.reduce(0.0, { $0 + Double($1)}) / 6 let inpt = readLine()!.split(separator: " ").map{ Int($0)!} var ans = 1.0 for _ in (1...inpt[0]) { ans = ans * hei1 } for _ in(1...inpt[1]) { ans = ans * hei2 } print(ans)