#include #include #include #include #include #include #include #include #define REP(i,k,n) for(int i=k;i P; int main() { int p,c; cin >> p >> c; double s = (2 + 3 + 5 + 7 + 11 + 13) / 6.0; double t = (4 + 6 + 8 + 9 + 10 + 12) / 6.0; double ans = 1.0; rep(i,p) ans *= s; rep(i,c) ans *= t; cout << fixed; cout.precision(20); cout << ans<< endl; return 0; }