d1=[2,3,5,7,11,13] d2=[4,6,8,9,10,12] l=6 c1,c2=map(int,input().split()) print(((sum(d1)/l)**c1)*((sum(d2)/l)**c2))