P, C = map(int, input().split()) exps = (sum([2,3,5,7,11,13]) / 6)** P if P > 0 else 0 expg = (sum([4,6,8,9,10,12]) / 6) ** C if C > 0 else 0 print(exps * expg)