P, C = map(int, input().split()) P_l = [2,3,5,7,11,13] C_l = [4,6,8,9,10,12] print(((sum(P_l)/6)**P)*((sum(C_l) / 6) ** C))