#include using namespace std; #include #include #include #include #define FOR(i,a,b) for(int (i)=(a);i<(b);i++) typedef long long ll; typedef unsigned long long ull; typedef long double lb; /* ここからが本編 */ int main(void) { int i,j,k,l; int p,c; long double a,b,ans=1; a = (long double)(2+3+5+7+11+13)/6; b = (long double)(4+6+8+9+10+12)/6; cin >> p >> c; FOR(i,0,p) ans *= a; FOR(i,0,c) ans *= b; printf("%llf\n",ans); return 0; }