# -*- coding:utf-8 -*- import itertools if __name__ == "__main__": sosuu = [2,3,5,7,11,13] gousei = [4,6,8,9,10,12] p,c = map(int,raw_input().split()) print (sum(sosuu)/6.)**p * (sum(b)/6.)**c