#!/usr/bin/python a = [2, 3, 5, 7, 11, 13] b = [4, 6, 8, 9, 10, 12] p, c = map(int, raw_input().split()) print float(sum(a)**p * sum(b)**c) / 6**(p+c)