def main(): P, C = map(int, input().split()) primes = (2, 3, 5, 7, 11, 13) non_primes = (4, 6, 8, 9, 10, 12) print(((sum(primes) / 6) ** P) * ((sum(non_primes) / 6) ** C)) if __name__ == "__main__": main()