a =2+3+5+7+11+13 b =4+6+8+9+10+12 P,C =[int(i) for i in input().split()] print((a**P)*(b**C)/(6**(P+C)))