#include using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) #define ALL(v) (v).begin(),(v).end() template inline bool chmax(A &a, B b) { if (a inline bool chmin(A &a, B b) { if (a>b) { a=b; return 1; } return 0; } typedef unsigned long long ull; typedef long long ll; typedef pair pii; typedef pair pll; typedef pair P; const ll INF = 1ll<<60; const ll MOD = 1000000007; const double EPS = 1e-10; int main() { int p, c; cin >> p >> c; int val[2][6] = {{2,3,5,7,11,13},{4,6,8,9,10,12}}; int sum[2] = {}; REP(i, 2) REP(j, 6) sum[i] += val[i][j]; double ans = 1.0, now; now = 1; REP(i, p) now *= (double)sum[0] / 6; ans *= now; now = 1; REP(i, c) now *= (double)sum[1] / 6; ans *= now; printf("%.15f\n", ans); return 0; }