P, C = map(int, input().split()) X = 2 + 3 + 5 + 7 + 11 + 13 Y = 4 + 6 + 8 + 9 + 10 + 12 ans = X**P * Y**C ans /= 6**(P + C) print(ans)