#include #include #define REP(i,n) for(int i=0; i<(int)(n); i++) #include inline int getInt(){ int s; scanf("%d", &s); return s; } #include using namespace std; int main(){ const int p = getInt(); const int c = getInt(); const int a[] = {2, 3, 5, 7, 11, 13}; const int b[] = {4, 6, 8, 9, 10, 12}; double ans = 1; REP(i,p) ans *= accumulate(a, a + 6, 0.0) / 6.0; REP(i,c) ans *= accumulate(b, b + 6, 0.0) / 6.0; printf("%.15f\n", ans); return 0; }