# coding: utf-8 #yuki_212 p,c=map(int,raw_input().split()) pp=1.0*(2+3+5+7+11+13)/6 pc=1.0*(4+6+8+9+10+12)/6 res=(pp**p)*(pc**c) print "%.9f" % res